From dbf8051f895cdf6dbd4ac0f1a814ec316b7a5124 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 8 Oct 2023 02:57:38 +0900 Subject: [PATCH] [feat] aws accept json --- src/ts/process/request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index bc06942d..5891057b 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -945,7 +945,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' headers: { ["Host"]: host, ["content-type"]: "application/json", - ["accept"]: "*/*", + ["accept"]: "application/json", "anthropic-version": "2023-06-01", }, body: JSON.stringify(params), @@ -968,7 +968,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' headers: { ["Host"]: host, ["content-type"]: "application/json", - ["accept"]: "*/*", + ["accept"]: "application/json", "anthropic-version": "2023-06-01", }, useRisuToken: true