mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
(improvement)(chat) The large model parsing supports SQL result verification and adds three retries (#1194)
This commit is contained in:
@@ -11,7 +11,7 @@ class ChatModelProperties {
|
||||
String apiKey;
|
||||
Double temperature;
|
||||
Double topP;
|
||||
String model;
|
||||
String modelName;
|
||||
Integer maxRetries;
|
||||
Integer maxToken;
|
||||
Boolean logRequests;
|
||||
|
||||
@@ -21,7 +21,7 @@ public class ZhipuAutoConfig {
|
||||
return ZhipuAiChatModel.builder()
|
||||
.baseUrl(chatModelProperties.getBaseUrl())
|
||||
.apiKey(chatModelProperties.getApiKey())
|
||||
.model(chatModelProperties.getModel())
|
||||
.model(chatModelProperties.getModelName())
|
||||
.temperature(chatModelProperties.getTemperature())
|
||||
.topP(chatModelProperties.getTopP())
|
||||
.maxRetries(chatModelProperties.getMaxRetries())
|
||||
@@ -38,7 +38,7 @@ public class ZhipuAutoConfig {
|
||||
return ZhipuAiStreamingChatModel.builder()
|
||||
.baseUrl(chatModelProperties.getBaseUrl())
|
||||
.apiKey(chatModelProperties.getApiKey())
|
||||
.model(chatModelProperties.getModel())
|
||||
.model(chatModelProperties.getModelName())
|
||||
.temperature(chatModelProperties.getTemperature())
|
||||
.topP(chatModelProperties.getTopP())
|
||||
.maxToken(chatModelProperties.getMaxToken())
|
||||
|
||||
Reference in New Issue
Block a user