fix(openai): adapt messages path to codex transform signature
This commit is contained in:
@@ -67,7 +67,7 @@ func (s *OpenAIGatewayService) ForwardAsAnthropic(
|
|||||||
if err := json.Unmarshal(responsesBody, &reqBody); err != nil {
|
if err := json.Unmarshal(responsesBody, &reqBody); err != nil {
|
||||||
return nil, fmt.Errorf("unmarshal for codex transform: %w", err)
|
return nil, fmt.Errorf("unmarshal for codex transform: %w", err)
|
||||||
}
|
}
|
||||||
applyCodexOAuthTransform(reqBody, false)
|
applyCodexOAuthTransform(reqBody, false, false)
|
||||||
// OAuth codex transform forces stream=true upstream, so always use
|
// OAuth codex transform forces stream=true upstream, so always use
|
||||||
// the streaming response handler regardless of what the client asked.
|
// the streaming response handler regardless of what the client asked.
|
||||||
isStream = true
|
isStream = true
|
||||||
|
|||||||
Reference in New Issue
Block a user