Skip to content

Commit 8acd524

Browse files
committed
fix anthropic cors error
1 parent 1866212 commit 8acd524

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "bks-ai-shell",
33
"name": "AI Shell",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"minAppVersion": "5",
66
"description": "Ask AI to analyze your database and generate SQL queries.",
77
"author": {

src/composables/ai.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export function useAI(options: AIOptions) {
128128
} else if (providerId.value === "anthropic") {
129129
return createAnthropic({
130130
apiKey: options.anthropicApiKey,
131+
headers: { 'anthropic-dangerous-direct-browser-access': 'true' }
131132
});
132133
} else if (providerId.value === "openai") {
133134
return createOpenAI({

0 commit comments

Comments
 (0)