add gpt-5.1 and gpt-5.1-codex support
This commit is contained in:
14
config.json
14
config.json
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user