mirror of
https://github.com/vinta/awesome-python.git
synced 2026-06-27 19:32:12 +00:00
fix: add anthropic-dangerous-direct-browser-access header for CORS
This commit is contained in:
parent
3e16c962c6
commit
b7b832764d
1 changed files with 1 additions and 0 deletions
|
|
@ -47,6 +47,7 @@ export async function fetchAnthropic({ system, userMessage, maxTokens = 1024 })
|
|||
'Content-Type': 'application/json',
|
||||
'x-api-key': apiKey,
|
||||
'anthropic-version': '2023-06-01',
|
||||
'anthropic-dangerous-direct-browser-access': 'true',
|
||||
},
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue