pull/15844/merge
Hugo Chiang 2026-04-08 05:30:16 +00:00 committed by GitHub
commit b25de15a56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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