-
Notifications
You must be signed in to change notification settings - Fork 60.5k
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
fix: removing bearer
from auth header when using azure
#3626
Conversation
@@ -9,7 +9,9 @@ const serverConfig = getServerSideConfig(); | |||
export async function requestOpenai(req: NextRequest) { | |||
const controller = new AbortController(); | |||
|
|||
const authValue = req.headers.get("Authorization") ?? ""; | |||
const authValue = |
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.
fyi, this breaks the app for openai API - thanks!
yeah it's so bad, it just merge a bug to main lmao |
改动后报错了 |
An error was reported after the change |
|
|
fix: removing `bearer` from auth header when using azure
No description provided.