Skip to content

Commit 58a2b7b

Browse files
committed
生图接口添加Authorization
1 parent 49752a2 commit 58a2b7b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/assistant/util.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@ export async function generateImage(options: {
397397
const response = await fetch('/bizyair/model/images', {
398398
method: 'POST',
399399
headers: {
400-
'Content-Type': 'application/json'
400+
'Content-Type': 'application/json',
401+
Authorization: Cookies.get('bizy_token') || '',
402+
...(options as any)?.headers
401403
},
402404
body: JSON.stringify({
403405
prompt: prompt,

0 commit comments

Comments
 (0)