mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
☁️ fix: 'thinking' parameter default to false for Bedrock Conversations (#8600)
This commit is contained in:
parent
faaba30af1
commit
13789ab261
1 changed files with 5 additions and 1 deletions
|
|
@ -71,7 +71,11 @@ const payloadParser = ({ req, agent, endpoint }) => {
|
||||||
if (isAgentsEndpoint(endpoint)) {
|
if (isAgentsEndpoint(endpoint)) {
|
||||||
return { model: undefined };
|
return { model: undefined };
|
||||||
} else if (endpoint === EModelEndpoint.bedrock) {
|
} 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;
|
return req.body.endpointOption.model_parameters;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue