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

View File

@@ -1 +1 @@
v5.0.0-beta-2504242231 v5.0.0-beta-2504251727

View File

@@ -44,11 +44,13 @@ 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,
Timeout: &timeout, Temperature: &temp,
Timeout: &timeout,
} }
// log config info // log config info