Skip to content

Commit 92fdeb3

Browse files
authored
Merge pull request #1665 from tmlx1990/fix1656
fix:1656 自定义AIOpenrouter无法使用
2 parents 354f5a5 + 4a74c2b commit 92fdeb3

File tree

1 file changed

+2
-2
lines changed
  • chat2db-client/src/blocks/Setting/AiSetting

1 file changed

+2
-2
lines changed

chat2db-client/src/blocks/Setting/AiSetting/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export default function SettingAI(props: IProps) {
5454
/** 应用Ai配置 */
5555
const handleApplyAiConfig = () => {
5656
const newAiConfig = { ...aiConfig };
57-
if (newAiConfig.apiHost && !newAiConfig.apiHost?.endsWith('/')) {
57+
/*if (newAiConfig.apiHost && !newAiConfig.apiHost?.endsWith('/')) {
5858
newAiConfig.apiHost = newAiConfig.apiHost + '/';
59-
}
59+
}*/
6060
if (aiConfig?.aiSqlSource === AIType.CHAT2DBAI) {
6161
newAiConfig.apiHost = `${window._appGatewayParams.baseUrl || 'http://test.sqlgpt.cn/gateway'}${'/model/'}`;
6262
}

0 commit comments

Comments
 (0)