Skip to content

Commit

Permalink
feat: configs about app client
Browse files Browse the repository at this point in the history
  • Loading branch information
butterfly committed Apr 8, 2024
1 parent 0fbb560 commit ef7617d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/platforms/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class ClaudeApi implements LLMApi {
const isApp = !!getClientConfig()?.isApp;

baseUrl = isApp
? DEFAULT_API_HOST + "/api/proxy" + ApiPath.Anthropic
? DEFAULT_API_HOST + "/api/proxy/anthropic"
: ApiPath.Anthropic;
}

Expand Down
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ if (mode !== "export") {
source: "/api/proxy/openai/:path*",
destination: "https://api.openai.com/:path*",
},
{
source: "/api/proxy/anthropic/:path*",
destination: "https://api.anthropic.com/:path*",
},
{
source: "/google-fonts/:path*",
destination: "https://fonts.googleapis.com/:path*",
Expand Down

0 comments on commit ef7617d

Please sign in to comment.