From f328ea0671688556169dbb2e9460753912824381 Mon Sep 17 00:00:00 2001 From: Taewan Park Date: Sat, 14 Dec 2024 02:06:49 +0900 Subject: [PATCH] Allow Anthropic APIs to send request in sites --- src/services/apis/claude-api.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/apis/claude-api.mjs b/src/services/apis/claude-api.mjs index d2719038..9931e4e7 100644 --- a/src/services/apis/claude-api.mjs +++ b/src/services/apis/claude-api.mjs @@ -30,6 +30,7 @@ export async function generateAnswersWithClaudeApi(port, question, session) { 'Content-Type': 'application/json', 'anthropic-version': '2023-06-01', 'x-api-key': config.claudeApiKey, + 'anthropic-dangerous-direct-browser-access': true, }, body: JSON.stringify({ model,