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

Implements support for OpenRouter #263

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

AxDSan
Copy link

@AxDSan AxDSan commented Apr 20, 2024

Reference Issues/PRs

Fixes #261

What does this implement/fix? Explain your changes.

This pull request implements the addition of new AI models through OpenRouter as the provider. It adds support for various starter models supported by OpenRouter. The changes involve implementing a new OpenRouterModel class to include the query, pricing and context information for each model.

The following files have been modified:

SWE-agent/main/sweagent/agent/models.py: Implemented the OpenRouterModel class to include the new models and their pricing information.

Any other comments?

This pull request ensures that the OpenRouterModel class can now handle a wider range of AI models (although list is very limited, but can be expanded for sure) available through the OpenRouter platform. It provides accurate pricing and context information for each model, allowing for cost calculations and comparisons directly from OpenRouter themselves.

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.

Implement Support for OpenRouter
1 participant