Skip to content

Commit ef82afb

Browse files
authored
Merge branch 'ggerganov:master' into master
2 parents d7652ca + 7bbb5ac commit ef82afb

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

examples/server/public/index.html.gz

0 Bytes
Binary file not shown.

examples/server/webui/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ const mainApp = createApp({
445445
method: 'POST',
446446
headers: {
447447
'Content-Type': 'application/json',
448-
'Authorization': this.config.apiKey ? `Bearer ${this.config.apiKey}` : undefined,
448+
...(this.config.apiKey ? {'Authorization': `Bearer ${this.config.apiKey}`} : {})
449449
},
450450
body: JSON.stringify(params),
451451
signal: abortController.signal,

0 commit comments

Comments
 (0)