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

@@ -51,6 +51,18 @@
"type": "openai",
"reasoning": "off"
},
{
"name": "GPT-5.1",
"id": "gpt-5.1",
"type": "openai",
"reasoning": "auto"
},
{
"name": "GPT-5.1-Codex",
"id": "gpt-5.1-codex",
"type": "openai",
"reasoning": "off"
},
{
"name": "GLM-4.6",
"id": "glm-4.6",
@@ -58,6 +70,6 @@
}
],
"dev_mode": false,
"user_agent": "factory-cli/0.25.1",
"user_agent": "factory-cli/0.25.2",
"system_prompt": "You are Droid, an AI software engineering agent built by Factory.\n\n"
}

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,