-
Notifications
You must be signed in to change notification settings - Fork 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
API key error occurs when setting model load balancing with Google model #12850
Comments
I found a similar unsolved discussion regarding model load balancing usage issues, which might be relevant to your situation. You can check it out here [1]. Regarding the API key error you're encountering, Dify returns a specific error message and code when an API key is invalid or misconfigured. The error code is 1001, and the message is "Invalid Authorization header format. Expected 'Bearer ' format." This might be related to the 400 Bad Request error you're seeing [2][3]. Additionally, Dify validates API keys for Google models during the load balancing process using the Ensure that your API key is correctly formatted and that the credentials are valid. If the issue persists, you might want to review the load balancing configuration and ensure that all settings are correctly applied. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@fujita-h In my understanding, this issue can occur not only with Google but also with any provider that does not have The As a potential fix, adding In the first place, the Lines 94 to 96 in bc3a570
Therefore, to determine variables to be decrypted, it seems more natural to reference |
@kurokobo I also created a PR that makes the way |
Self Checks
Dify version
0.15.1
Cloud or Self Hosted
Cloud, Self Hosted (Source)
Steps to reproduce
✔️ Expected Behavior
It is load balanced and the flow succeeds every time.
❌ Actual Behavior
An error occurs at the timing of the key that is additionally set for load balancing.
The text was updated successfully, but these errors were encountered: