Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
🔃 refactor: Allow streaming for o1 models in OpenAIClient and agent runs (#6509)
Danny Avilac4fea9cd7968
diff --git a/api/app/clients/OpenAIClient.js b/api/app/clients/OpenAIClient.jsindex d1184e5f7b..ad467fa3a9 100644--- a/api/app/clients/OpenAIClient.js+++ b/api/app/clients/OpenAIClient.js@@ -1346,14 +1346,6 @@ ${convo}let streamResolve;if (- this.isOmni === true &&- (this.azure || /o1(?!-(?:mini|preview)).*$/.test(modelOptions.model)) &&- !/o3-.*$/.test(this.modelOptions.model) &&- modelOptions.stream- ) {- delete modelOptions.stream;- delete modelOptions.stop;- } else if ((!this.isOmni || /^o1-(mini|preview)/i.test(modelOptions.model)) &&modelOptions.reasoning_effort != null) {diff --git a/api/server/controllers/agents/run.js b/api/server/controllers/agents/run.jsindex 45fbf56b49..dfc5444c5a 100644--- a/api/server/controllers/agents/run.js+++ b/api/server/controllers/agents/run.js@@ -51,10 +51,6 @@ async function createRun({) {reasoningKey = 'reasoning';}- if (/o1(?!-(?:mini|preview)).*$/.test(llmConfig.model)) {- llmConfig.streaming = false;- llmConfig.disableStreaming = true;- }/** @type {StandardGraphConfig} */const graphConfig = {