[feat] aws accept json

This commit is contained in:
kwaroran
2023-10-08 02:57:38 +09:00
parent 980f9688c2
commit dbf8051f89

View File

@@ -945,7 +945,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
headers: { headers: {
["Host"]: host, ["Host"]: host,
["content-type"]: "application/json", ["content-type"]: "application/json",
["accept"]: "*/*", ["accept"]: "application/json",
"anthropic-version": "2023-06-01", "anthropic-version": "2023-06-01",
}, },
body: JSON.stringify(params), body: JSON.stringify(params),
@@ -968,7 +968,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
headers: { headers: {
["Host"]: host, ["Host"]: host,
["content-type"]: "application/json", ["content-type"]: "application/json",
["accept"]: "*/*", ["accept"]: "application/json",
"anthropic-version": "2023-06-01", "anthropic-version": "2023-06-01",
}, },
useRisuToken: true useRisuToken: true