From 3c0e922cbdce55206598c071664b25b11127d998 Mon Sep 17 00:00:00 2001 From: 1e0n Date: Fri, 14 Nov 2025 11:19:41 +0800 Subject: [PATCH] add gpt-5.1 and gpt-5.1-codex support --- config.json | 14 +++++++++++++- transformers/request-openai.js | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 2eabf02..da76729 100644 --- a/config.json +++ b/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" } diff --git a/transformers/request-openai.js b/transformers/request-openai.js index 6490a54..f2a31cb 100644 --- a/transformers/request-openai.js +++ b/transformers/request-openai.js @@ -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,