Merge branch 'ChatGPTNextWeb:feat-multi-models' into feat-multi-models

This commit is contained in:
brett
2024-04-08 14:16:27 +08:00
committed by GitHub
3 changed files with 6 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ export const preferredRegion = [
const serverConfig = getServerSideConfig();
export async function request(req: NextRequest) {
async function request(req: NextRequest) {
const controller = new AbortController();
let authHeaderName = "x-api-key";

View File

@@ -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;
}