Modify Model Call Connection

This commit is contained in:
JiaJu Zhuang
2023-07-10 21:55:06 +08:00
parent 7aca2359da
commit 5c42dc38dd
5 changed files with 10 additions and 4 deletions

View File

@ -69,9 +69,10 @@ public class AiConfigController {
configService.createOrUpdate(param);
SystemConfigParam hostParam = SystemConfigParam.builder()
.code(OpenAIClient.OPENAI_HOST)
.content(chat2dbProperties.getGateway().getBaseUrl() + "/model")
.content(chat2dbProperties.getGateway().getModelBaseUrl() + "/model")
.build();
configService.createOrUpdate(hostParam);
OpenAIClient.refresh();
}
return dataResult;
}