zen: set session affinity header
parent
4086a9ae8e
commit
173804c097
|
|
@ -26,6 +26,7 @@ export const oaCompatHelper: ProviderHelper = () => ({
|
|||
modifyUrl: (providerApi: string) => providerApi + "/chat/completions",
|
||||
modifyHeaders: (headers: Headers, body: Record<string, any>, apiKey: string) => {
|
||||
headers.set("authorization", `Bearer ${apiKey}`)
|
||||
headers.set("x-session-affinity", headers.get("x-opencode-session") ?? "")
|
||||
},
|
||||
modifyBody: (body: Record<string, any>) => {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue