Skip to content

Conversation

zakhar-kogan
Copy link
Contributor

Features

  • Added OpenRouter support as it gives access to GPT-4, PaLM-2 and Claude 2 without additional surcharges;
  • Added support for .env files and enclosed an example.

@zakhar-kogan zakhar-kogan changed the title Added openrouter.ai support Added OpenRouter support Jul 28, 2023
@krrishdholakia
Copy link
Contributor

PR under review ✅

Hope to revert by tonight.

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the contribution, looks awesome. It's good to merge, but small nit: In completion_test can you leave all the other tests uncommented

print(response)

# # openai call
# response = completion(model="gpt-3.5-turbo", messages=messages)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we leave all the other tests uncommented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in ~15 minutes. Thanks for reviewing 🧡

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncommented + deleted the unneeded testos.py (my bad) 🥲

One question - I could try implementing everything using pattern matching. Should I try that, or we'll lose backward compatibility this way?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's address pattern matching in a separate PR

@ishaan-jaff ishaan-jaff merged commit 7126246 into BerriAI:main Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants