Skip to content

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

☁️ fix: 'thinking' parameter default to false for Bedrock Conversations (#8600)

Danny Avila13789ab26169
diff --git a/api/server/controllers/agents/client.js b/api/server/controllers/agents/client.js
index c42df8cf0b..891aee76e7 100644
--- a/api/server/controllers/agents/client.js
+++ b/api/server/controllers/agents/client.js
@@ -71,7 +71,11 @@ const payloadParser = ({ req, agent, endpoint }) => {
if (isAgentsEndpoint(endpoint)) {
return { model: undefined };
} else if (endpoint === EModelEndpoint.bedrock) {
- return bedrockInputSchema.parse(agent.model_parameters);
+ const parsedValues = bedrockInputSchema.parse(agent.model_parameters);
+ if (parsedValues.thinking == null) {
+ parsedValues.thinking = false;
+ }
+ return parsedValues;
}
return req.body.endpointOption.model_parameters;
};