embedding request failed with status code '401' - You didn't provide an API key despite API_KEY being set #73
-
I have both OPENAI_API_KEY and API_KEY set. I tried passing it as a CLI argument as well. I tried adding it to the Is there any step I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
@rodrigomeireles Your api key for embedding and chat is the same or different!? you try with openai? if use openai chat should use embeding by openai and if use ollama chat should use embedding by ollama.
|
Beta Was this translation helpful? Give feedback.
-
Then I believe this is an issue. I'm running on OSC M3, my environment
variable is set and I can't run it.
…On Sat, 16 Nov 2024, 09:48 Meysam Hadeli, ***@***.***> wrote:
In simple scenario 1 key is enough if the server of chat and embedding is
the same. but for example If we use azure openai and server of chat and
embedding are in different server location, the keys are different and here
if keys for each one is different for chat and embedding, the app doesn't
support yet. I will add support for different keys today.
- If you are using OpenAI and the Key for chat and embedding is the
same app should work properly.
—
Reply to this email directly, view it on GitHub
<#73 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJQUPSM5VW46HM4ZLTHMNDD2A45LRAVCNFSM6AAAAABR4X7BLKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRXG4ZTIMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
@rodrigomeireles Hi, Don't worry. I figure out openai provider had problem with configure token in the code and I fixed it last day. could you try with latest version of codai
1.7.2
and see the problem fixed or not!? (also, I simplified the config and please follow with new config base on doc.)