mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 20:30:51 +08:00
Add Keep-Alive header
This commit is contained in:
@@ -447,6 +447,7 @@ func (c *CodexClient) APIRequest(ctx context.Context, modelName, endpoint string
|
|||||||
req.Header.Set("Openai-Beta", "responses=experimental")
|
req.Header.Set("Openai-Beta", "responses=experimental")
|
||||||
req.Header.Set("Session_id", sessionID)
|
req.Header.Set("Session_id", sessionID)
|
||||||
req.Header.Set("Accept", "text/event-stream")
|
req.Header.Set("Accept", "text/event-stream")
|
||||||
|
req.Header.Set("Connection", "Keep-Alive")
|
||||||
|
|
||||||
if c.apiKeyIndex != -1 {
|
if c.apiKeyIndex != -1 {
|
||||||
// Using API key authentication
|
// Using API key authentication
|
||||||
|
|||||||
Reference in New Issue
Block a user