-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
openrouter.ai api #170
Comments
Agreed, this looks like a potentially very useful integration. |
I've done some experimenting and gotten aider to work against the openrouter api - main...joshuavial:aider:openrouter-hacks has some quick and dirty changes that let me mess around Main noticings are
I didn't mess with the gpt-4-32k context but it would be pretty easy to test. I've seen comments in the openrouter discord about rate limits being proportional to the amount of credits you buy, it's a work in progress though but at the moment rate limits are unclear. It also sounds like they are throttled on the amount of gpt-4-32k access they get so I would expect that to be a bit patchy. But overall results felt promising and I think it would be a good feature to implement. If you want to play around then you can use the code above as a starting point (still needs a bunch of work to make it robust) and then you can set your openai api key and base and use commands like |
Im on the latest dev build v0.13.1-dev(with#199 merged), when i try to use 'meta-llama/codellama-34b-instruct' it says Repo-map: disabled |
@r1di currently it will only use the repo_map for gpt4 and claude2 which was a bit of an arbitrary choice. I think it would be a good enhancement if it let you add the repo_map when you wanted, happy to add it in at some stage. |
I have tested gpt-3.5 with the repo map, and it confuses the model and makes things worse. That said, a manual switch to force the repo-map to be used does sound theoretically useful. Just not sure there currently exist any models for which it would be smart to invoke that switch. |
How should I use |
Dear Paul please consider options to integrate.
openrouter.ai
https://openrouter.ai/docs
since their api enables to use gpt-4-32k and claude-v2 api, with no additional cost.
thanks
The text was updated successfully, but these errors were encountered: