Adding Litellm client and some models/providers.#563
Open
OSH212 wants to merge 6 commits intostitionai:mainfrom
Open
Adding Litellm client and some models/providers.#563OSH212 wants to merge 6 commits intostitionai:mainfrom
OSH212 wants to merge 6 commits intostitionai:mainfrom
Conversation
sted with OpenRouter and DeepInfra models
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Created litellm_client.py for LiteLLM and updated llm.py, sample.config.toml and README.md accordingly.
I tested it with OpenRouter and DeepInfra hosted models.
Explain what existing problem does the pull request solve?
Allowing usage of LiteLLM framework
Test plan (required)
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.
24.05.15 17:05:02: root: INFO : User message: {'message': 'create a modern snake game', 'base_model': 'OpenRouter: Gemma 7B', 'project_name': 'gemma', 'search_engine': 'Google'}
24.05.15 17:05:02: root: INFO : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'create a modern snake game', 'timestamp': '2024-05-15 17:05:02'}}
24.05.15 17:05:02: root: INFO : SOCKET agent-state MESSAGE: [{'internal_monologue': "I'm starting the work...", 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': 1, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 0, 'timestamp': '2024-05-15 17:05:02'}]
24.05.15 17:05:02: root: INFO : SOCKET tokens MESSAGE: {'token_usage': 734}
Closing issues (optional)
Fixes #