Merge e48d9828ea into ae614d919f
commit
b25de15a56
|
|
@ -598,6 +598,10 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
|
|||
output.headers.originator = "opencode"
|
||||
output.headers["User-Agent"] = `opencode/${Installation.VERSION} (${os.platform()} ${os.release()}; ${os.arch()})`
|
||||
output.headers.session_id = input.sessionID
|
||||
const residency = input.provider?.options?.enforce_residency
|
||||
if (residency) {
|
||||
output.headers["x-openai-internal-codex-residency"] = residency
|
||||
}
|
||||
},
|
||||
"chat.params": async (input, output) => {
|
||||
if (input.model.providerID !== "openai") return
|
||||
|
|
|
|||
Loading…
Reference in New Issue