-
Notifications
You must be signed in to change notification settings - Fork 301
add support for AWS Bedrock as LLM provider #61
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
base: main
Are you sure you want to change the base?
Conversation
…project to build (it was not building on the main branch) - pinned litellm at 1.48.2 until (BerriAI/litellm#6003) is solved - introduced code for bedrock models. Not happy with this implementation, but I would need to rewrite the entire ai_handler module to make it right. Ideally, this should just pass everything to litellm and not get in the way. This was tested manually by running solve_my_problem example against both openai and aws bedrock - updated readme with bedrock instructions - left config in the same state as in main branch, so defaulting to openai - added a couple of useful litellm switches to the config, although did not implement a full set of config options at this point
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
max_tokens_to_samplebeing sent to Amazon Bedrock models BerriAI/litellm#6003) is solvedPR Type
enhancement, documentation, dependencies
Description
AiHandlerclass, including a newProviderenum and refactored chat completion logic.litellm.fastapi,litellm,tiktoken, andboto3.Changes walkthrough 📝
ai_handler.py
Add support for AWS Bedrock and refactor provider handlingalpha_codium/llm/ai_handler.py
Providerenum to handle different LLM providers.AiHandlerclass.provider.
README.md
Update README with AWS Bedrock configuration instructionsREADME.md
configuration.toml
Update configuration for AWS Bedrock and litellm optionsalpha_codium/settings/configuration.toml
gpt-3.5-turbo-16k.litellm.requirements.txt
Update and pin dependencies for compatibilityrequirements.txt
fastapito version 0.115.0.litellmto version 1.48.2.tiktokenandboto3to more flexible version specifications.