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",
|
"type": "openai",
|
||||||
"reasoning": "off"
|
"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",
|
"name": "GLM-4.6",
|
||||||
"id": "glm-4.6",
|
"id": "glm-4.6",
|
||||||
@@ -58,6 +70,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dev_mode": false,
|
"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"
|
"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 = {
|
const headers = {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
'authorization': authHeader || '',
|
'authorization': authHeader || '',
|
||||||
'x-api-provider': 'azure_openai',
|
'x-api-provider': 'openai',
|
||||||
'x-factory-client': 'cli',
|
'x-factory-client': 'cli',
|
||||||
'x-session-id': sessionId,
|
'x-session-id': sessionId,
|
||||||
'x-assistant-message-id': messageId,
|
'x-assistant-message-id': messageId,
|
||||||
|
|||||||
Reference in New Issue
Block a user