Skip to content

Commit 2b0ec1f

Browse files
xiaotianxtliby
authored andcommitted
fix: replace OR by nullish coalescing
1 parent 3a6d558 commit 2b0ec1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function buildRequestBody(model, query) {
8686
const systemPrompt = customSystemPrompt || generatedSystemPrompt;
8787
const userPrompt = customUserPrompt || generatedUserPrompt;
8888

89-
const modelTemperature = Number(temperature || 0.2);
89+
const modelTemperature = Number(temperature ?? 0.2);
9090

9191
const standardBody = {
9292
model: model,

0 commit comments

Comments
 (0)