Skip to content

Commit

Permalink
Update api.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandostaler authored Sep 25, 2024
1 parent d3b17af commit be3160b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function prepareStreamAndGetResponse(customHeaders: Record<string, string>
}

if(!modelCost[tempConfig.model].supportTemperature) {
config.temperature = 1;
tempConfig.temperature = 1;
}

const adjustedMessagesTuple = limitMessageTokens(
Expand Down

0 comments on commit be3160b

Please sign in to comment.