add gpt-5.1 and gpt-5.1-codex support

This commit is contained in:
1e0n
2025-11-14 11:19:41 +08:00
parent ffabf921be
commit 3c0e922cbd
2 changed files with 14 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ export function getOpenAIHeaders(authHeader, clientHeaders = {}) {
const headers = {
'content-type': 'application/json',
'authorization': authHeader || '',
'x-api-provider': 'azure_openai',
'x-api-provider': 'openai',
'x-factory-client': 'cli',
'x-session-id': sessionId,
'x-assistant-message-id': messageId,