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

This commit is contained in:
Danny Avila 2025-07-22 12:01:18 -04:00 committed by GitHub
parent faaba30af1
commit 13789ab261
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};