Skip to content

Commit

Permalink
fix: replace OR by nullish coalescing
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaotianxt authored and liby committed Apr 15, 2024
1 parent 3a6d558 commit 2b0ec1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function buildRequestBody(model, query) {
const systemPrompt = customSystemPrompt || generatedSystemPrompt;
const userPrompt = customUserPrompt || generatedUserPrompt;

const modelTemperature = Number(temperature || 0.2);
const modelTemperature = Number(temperature ?? 0.2);

const standardBody = {
model: model,
Expand Down

0 comments on commit 2b0ec1f

Please sign in to comment.