Add claude plain fetch header
This commit is contained in:
@@ -1997,6 +1997,10 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
|||||||
headers['anthropic-beta'] = 'prompt-caching-2024-07-31'
|
headers['anthropic-beta'] = 'prompt-caching-2024-07-31'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(db.usePlainFetch){
|
||||||
|
headers['anthropic-dangerous-direct-browser-access'] = 'true'
|
||||||
|
}
|
||||||
|
|
||||||
if(useStreaming){
|
if(useStreaming){
|
||||||
|
|
||||||
const res = await fetchNative(replacerURL, {
|
const res = await fetchNative(replacerURL, {
|
||||||
|
|||||||
Reference in New Issue
Block a user