-
Notifications
You must be signed in to change notification settings - Fork 117
fix(openai_compatible_rerank): Handle empty API keys consistently with text_embedding #206
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
base: main
Are you sure you want to change the base?
Conversation
| "Content-Type": "application/json", | ||
| } | ||
|
|
||
| # 只有当api_key不为空时才添加Authorization头 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure the comment in English.
f841890 to
98273d6
Compare
Yeuoly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
|
Please accept my sincere apologies for the incorrect closure of your pull request due to a technical issue in the trigger test. This was an operational mistake on our side, and I deeply regret any inconvenience this may have caused. (T.T) |
Description
Fixes langgenius/dify-official-plugins#1724 by making authorization header handling in OpenAI-compatible rerank model consistent with text_embedding implementation:
Changes
rerank.py