Merge branch 'main' of https://github.com/ChatGPTNextWeb/NextChat into feature-dsmodels-20250228

This commit is contained in:
wangjianhua
2025-09-19 15:14:25 +08:00
42 changed files with 1728 additions and 94 deletions

View File

@@ -18,6 +18,7 @@ import {
CHATGLM_BASE_URL,
SILICONFLOW_BASE_URL,
HUAWEI_BASE_URL,
AI302_BASE_URL,
} from "../constant";
import { getHeaders } from "../client/api";
import { getClientConfig } from "../config/client";
@@ -62,6 +63,8 @@ const DEFAULT_SILICONFLOW_URL = isApp
? SILICONFLOW_BASE_URL
: ApiPath.SiliconFlow;
const DEFAULT_AI302_URL = isApp ? AI302_BASE_URL : ApiPath["302.AI"];
const DEFAULT_ACCESS_STATE = {
accessCode: "",
useCustomConfig: false,
@@ -138,6 +141,10 @@ const DEFAULT_ACCESS_STATE = {
huaweiUrl: DEFAULT_HUAWEI_URL,
huaweiApiKey: "",
// 302.AI
ai302Url: DEFAULT_AI302_URL,
ai302ApiKey: "",
// server config
needCode: true,
hideUserApiKey: false,