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

litellm Integration #13

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

litellm Integration #13

wants to merge 8 commits into from

Conversation

rajkstats
Copy link
Contributor

@jamesmurdza

os_computer_use/config.py:

  • Updated the configuration to use LiteLLMProvider for both vision and action tasks.
  • Verified functionality with Mistral and Fireworks models.
  • Both the custom-based approach and the litellm approach are working in this PR.

os_computer_use/llm_provider.py:

  • Added the new LiteLLMBaseProvider.
  • Modified the LiteLLMBaseProvider.create_client() method to import the completion function from litellm locally—keeping it isolated to LiteLLM.
  • Retained the mistral-specific logic for message ordering (merging assistant output into the conversation).

pyproject.toml:

  • Added litellm as a dependency

tests/llm_provider.py:

  • Introduced tests for litellm functionality related to Mistral.

In summary, I've implemented both the custom approach and the litellm approach. Once we finalize testing, we can drop the custom solution and unify under litellm.

Looking forward to your response !!

@jamesmurdza
Copy link
Collaborator

We won't merge this until we are confident that it makes the codebase simpler.

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.

2 participants