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

new llm api #2710

Open
baki2u opened this issue Dec 26, 2024 · 2 comments
Open

new llm api #2710

baki2u opened this issue Dec 26, 2024 · 2 comments
Labels
question Further information is requested

Comments

@baki2u
Copy link

baki2u commented Dec 26, 2024

Issue

how can I add support for custom llm api

I tried to mimic it by using openai compatible gemini api but it resulted in 404 error .. what am i doing wrong

aider --openai-api-base https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:generate --model openai/gemini-1.5-pro-latest sample1.c
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Warning for openai/gemini-1.5-pro-latest: Unknown context window size and costs, using sane defaults.
Did you mean one of these?

  • gemini/gemini-1.5-pro-latest
    You can skip this check with --no-show-model-warnings

https://aider.chat/docs/llms/warnings.html
Open documentation url for more info? (Y)es/(N)o/(D)on't ask again [Yes]: n

Aider v0.69.1
Model: openai/gemini-1.5-pro-latest with whole edit format
Git repo: .git with 1 files
Repo-map: disabled
Added sample1.c to the chat.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sample1.c

fix

litellm.NotFoundError: NotFoundError: OpenAIException - Error code: 404

Version and model info

No response

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/llms/gemini.html

@github-actions github-actions bot added the question Further information is requested label Dec 27, 2024
@baki2u
Copy link
Author

baki2u commented Dec 27, 2024

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/llms/gemini.html

Thanks a lot for your time, Paul.

im actually trying to connect to llm on a custom server like baki.com/llm
using this approach resulted in 404 errors : https://aider.chat/docs/llms/openai-compat.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants