fix(ai): set session id headers for all OpenAI compatible responses (#3264)
This commit is contained in:
@@ -179,7 +179,7 @@ function createClient(
|
||||
Object.assign(headers, copilotHeaders);
|
||||
}
|
||||
|
||||
if (sessionId && model.provider === "openai" && model.baseUrl.includes("api.openai.com")) {
|
||||
if (sessionId) {
|
||||
headers.session_id = sessionId;
|
||||
headers["x-client-request-id"] = sessionId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user