Skip to content

Commit ef7617d

Browse files
author
butterfly
committed
feat: configs about app client
1 parent 0fbb560 commit ef7617d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/client/platforms/anthropic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export class ClaudeApi implements LLMApi {
356356
const isApp = !!getClientConfig()?.isApp;
357357

358358
baseUrl = isApp
359-
? DEFAULT_API_HOST + "/api/proxy" + ApiPath.Anthropic
359+
? DEFAULT_API_HOST + "/api/proxy/anthropic"
360360
: ApiPath.Anthropic;
361361
}
362362

next.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ if (mode !== "export") {
7777
source: "/api/proxy/openai/:path*",
7878
destination: "https://api.openai.com/:path*",
7979
},
80+
{
81+
source: "/api/proxy/anthropic/:path*",
82+
destination: "https://api.anthropic.com/:path*",
83+
},
8084
{
8185
source: "/google-fonts/:path*",
8286
destination: "https://fonts.googleapis.com/:path*",

0 commit comments

Comments
 (0)