Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Extend available LLMs #44

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Feat: Extend available LLMs #44

wants to merge 6 commits into from

Conversation

tanmaygupta9
Copy link

@tanmaygupta9 tanmaygupta9 commented Apr 3, 2024

Extended llm.py and relevant configs to accept Anthropic's Claude-3-Opus and Google's Gemini-1.0-Pro models.

TODO:

  • Test more prompts, particularly with Gemini, which might suggest additions for improving performance
  • Fix streaming issue in Gemini
  • Update .env.example to include ANTHROPIC_API_KEY and GOOGLE_API_KEY
  • Add docs on how to add/test new models

llm = get_llm(
agent_config.common.llm,
'gpt-4',
Copy link
Author

Choose a reason for hiding this comment

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

@kaikun213 forcing it to use gpt-4's tokenizer here through tiktoken because otherwise langchain tries to import claude's tokenizer from transformers otherwise (and I don't think we want to add that to dependencies). Does that work?

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.

None yet

1 participant