mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-20 19:35:46 +08:00
Modify Model Call Connection
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user