-
Notifications
You must be signed in to change notification settings - Fork 665
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
Keep being asked for OpenAI key when using Gemini #789
Comments
The error you're encountering indicates that the Here are a few steps you can take to resolve this issue:
If you are certain that OpenAI should not be involved, you might need to review the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Hi @Exemocaro without me reading deeply here it's unclear if it's a PaperQA issue (us not instantiating the LiteLLM Are you able to try to make a more minimal repro of this in one script? What I mean is try to basically rip out as much of PaperQA as possible to root cause where the issue actually is. |
@jamesbraza I don't think I can make it much smaller than this. I still get the same error, and if I remove the embedding it will opt for the default OpenAI one so I still get the error as well. I just picked this tool up so I'm sorry if I'm being a complete dunce by the way. If there's a Gemini example code available somewhere I would be glad to try it out! By the way, this is the same error I'm getting when running the code with a local model, as explained in #787
|
@jamesbraza Sorry for the ping, I'm not sure if you saw this. |
Hello @Exemocaro I see your issue here. Notice the
What happens is we currently have several places LLMs can be configured:
You will need to pass your |
Also @Exemocaro you can't actually use |
Thank you! Other gemini versions such as
|
Hi, I'm trying to use a Gemini API and a local embedding model, and I keep getting the following error. Is there something wrong with my code? I tried to search for similar errors but I can't seem to find what's wrong.
My code:
The error:
The text was updated successfully, but these errors were encountered: