-
Notifications
You must be signed in to change notification settings - Fork 277
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
add support for AWS Bedrock as LLM provider #61
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_sample
being sent to Amazon Bedrock models BerriAI/litellm#6003) is solvedPR Type
enhancement, documentation, dependencies
Description
AiHandler
class, including a newProvider
enum and refactored chat completion logic.litellm
.fastapi
,litellm
,tiktoken
, andboto3
.Changes walkthrough 📝
ai_handler.py
Add support for AWS Bedrock and refactor provider handling
alpha_codium/llm/ai_handler.py
Provider
enum to handle different LLM providers.AiHandler
class.provider.
README.md
Update README with AWS Bedrock configuration instructions
README.md
configuration.toml
Update configuration for AWS Bedrock and litellm options
alpha_codium/settings/configuration.toml
gpt-3.5-turbo-16k
.litellm
.requirements.txt
Update and pin dependencies for compatibility
requirements.txt
fastapi
to version 0.115.0.litellm
to version 1.48.2.tiktoken
andboto3
to more flexible version specifications.