mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
feat: configs about app client
This commit is contained in:
parent
0fbb560e90
commit
ef7617d545
@ -356,7 +356,7 @@ export class ClaudeApi implements LLMApi {
|
|||||||
const isApp = !!getClientConfig()?.isApp;
|
const isApp = !!getClientConfig()?.isApp;
|
||||||
|
|
||||||
baseUrl = isApp
|
baseUrl = isApp
|
||||||
? DEFAULT_API_HOST + "/api/proxy" + ApiPath.Anthropic
|
? DEFAULT_API_HOST + "/api/proxy/anthropic"
|
||||||
: ApiPath.Anthropic;
|
: ApiPath.Anthropic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +77,10 @@ if (mode !== "export") {
|
|||||||
source: "/api/proxy/openai/:path*",
|
source: "/api/proxy/openai/:path*",
|
||||||
destination: "https://api.openai.com/:path*",
|
destination: "https://api.openai.com/:path*",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
source: "/api/proxy/anthropic/:path*",
|
||||||
|
destination: "https://api.anthropic.com/:path*",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
source: "/google-fonts/:path*",
|
source: "/google-fonts/:path*",
|
||||||
destination: "https://fonts.googleapis.com/:path*",
|
destination: "https://fonts.googleapis.com/:path*",
|
||||||
|
Loading…
Reference in New Issue
Block a user