We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49752a2 commit 58a2b7bCopy full SHA for 58a2b7b
1 file changed
src/components/assistant/util.ts
@@ -397,7 +397,9 @@ export async function generateImage(options: {
397
const response = await fetch('/bizyair/model/images', {
398
method: 'POST',
399
headers: {
400
- 'Content-Type': 'application/json'
+ 'Content-Type': 'application/json',
401
+ Authorization: Cookies.get('bizy_token') || '',
402
+ ...(options as any)?.headers
403
},
404
body: JSON.stringify({
405
prompt: prompt,
0 commit comments