forked from UT-InfraAI/ventis
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(core): Broaden Dependencies (CAN-408) #186
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
bcb203b
removed unused dependencies
Saaketh0 88ed971
lowering the floor on redis and not failing on new releases
Saaketh0 0c14d7f
readme
Saaketh0 68df188
moving requirements into proxy to simplify requirements
Saaketh0 e0ab554
updated readme
Saaketh0 0a885c3
simplified
Saaketh0 6c04360
readability changes
Saaketh0 5857cdc
Merge origin/main into CAN-408-Simplify-Dependencies
Saaketh0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 10 additions & 3 deletions
13
packages/core/canyonos_core/llm_proxy/providers/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,21 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from canyonos_core.llm_proxy.providers.anthropic import AnthropicProvider | ||
| from canyonos_core.llm_proxy.providers.bedrock import BedrockProvider | ||
| from canyonos_core.llm_proxy.providers.openai import OpenAIProvider | ||
|
|
||
| # boto3 ships only in images whose agent declares it, so Bedrock is registered only when present. | ||
| try: | ||
| from canyonos_core.llm_proxy.providers.bedrock import BedrockProvider | ||
| except ImportError: | ||
| BedrockProvider = None | ||
|
|
||
|
|
||
| def build_registry(cfg): | ||
| """Map the URL prefix -> provider instance.""" | ||
| return { | ||
| registry = { | ||
| "openai": OpenAIProvider(cfg), | ||
| "anthropic": AnthropicProvider(cfg), | ||
| "bedrock": BedrockProvider(cfg), | ||
| } | ||
| if BedrockProvider is not None: | ||
| registry["bedrock"] = BedrockProvider(cfg) | ||
| return registry |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.