We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 354f5a5 + 4a74c2b commit 92fdeb3Copy full SHA for 92fdeb3
chat2db-client/src/blocks/Setting/AiSetting/index.tsx
@@ -54,9 +54,9 @@ export default function SettingAI(props: IProps) {
54
/** 应用Ai配置 */
55
const handleApplyAiConfig = () => {
56
const newAiConfig = { ...aiConfig };
57
- if (newAiConfig.apiHost && !newAiConfig.apiHost?.endsWith('/')) {
+ /*if (newAiConfig.apiHost && !newAiConfig.apiHost?.endsWith('/')) {
58
newAiConfig.apiHost = newAiConfig.apiHost + '/';
59
- }
+ }*/
60
if (aiConfig?.aiSqlSource === AIType.CHAT2DBAI) {
61
newAiConfig.apiHost = `${window._appGatewayParams.baseUrl || 'http://test.sqlgpt.cn/gateway'}${'/model/'}`;
62
}
0 commit comments