fix: set seed parameter for qwen (close #1005)

This commit is contained in:
JustSong 2024-02-18 15:01:09 +08:00
parent 9383b638a6
commit 604ac56305
2 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,8 @@ import (
"net/http"
)
// https://help.aliyun.com/zh/dashscope/developer-reference/api-details
type Adaptor struct {
}

View File

@ -41,6 +41,7 @@ func ConvertRequest(request model.GeneralOpenAIRequest) *ChatRequest {
Parameters: Parameters{
EnableSearch: enableSearch,
IncrementalOutput: request.Stream,
Seed: uint64(request.Seed),
},
}
}