change: set Temperature for ark model

This commit is contained in:
lilong.129
2025-04-25 17:27:37 +08:00
parent 03c0d6ee42
commit 817dc4d6a5
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
v5.0.0-beta-2504242231 v5.0.0-beta-2504251727
+2
View File
@@ -44,10 +44,12 @@ func GetArkModelConfig() (*ark.ChatModelConfig, error) {
"env %s missed", EnvArkModelID) "env %s missed", EnvArkModelID)
} }
timeout := defaultTimeout timeout := defaultTimeout
temp := float32(0.7)
modelConfig := &ark.ChatModelConfig{ modelConfig := &ark.ChatModelConfig{
BaseURL: arkBaseURL, BaseURL: arkBaseURL,
APIKey: arkAPIKey, APIKey: arkAPIKey,
Model: modelName, Model: modelName,
Temperature: &temp,
Timeout: &timeout, Timeout: &timeout,
} }