Commit 9c567fad authored by yangjianbo's avatar yangjianbo
Browse files

fix(网关): 优化 OAuth 请求中 store 参数的处理逻辑

parent 0abb3a68
...@@ -92,10 +92,7 @@ func applyCodexOAuthTransform(reqBody map[string]any) codexTransformResult { ...@@ -92,10 +92,7 @@ func applyCodexOAuthTransform(reqBody map[string]any) codexTransformResult {
// OAuth 走 ChatGPT internal API 时,store 必须为 false;显式 true 也会强制覆盖。 // OAuth 走 ChatGPT internal API 时,store 必须为 false;显式 true 也会强制覆盖。
// 避免上游返回 "Store must be set to false"。 // 避免上游返回 "Store must be set to false"。
if v, ok := reqBody["store"].(bool); !ok { if v, ok := reqBody["store"].(bool); !ok || v {
reqBody["store"] = false
result.Modified = true
} else if v {
reqBody["store"] = false reqBody["store"] = false
result.Modified = true result.Modified = true
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment