mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 09:19:54 +00:00
temperature 0-2
This commit is contained in:
4
chat.go
4
chat.go
@@ -39,8 +39,8 @@ func (r *Request) Parse() (*openrouter.ChatCompletionRequest, error) {
|
||||
|
||||
request.Model = r.Model
|
||||
|
||||
if r.Temperature < 0 || r.Temperature > 1 {
|
||||
return nil, fmt.Errorf("invalid temperature (0-1): %f", r.Temperature)
|
||||
if r.Temperature < 0 || r.Temperature > 2 {
|
||||
return nil, fmt.Errorf("invalid temperature (0-2): %f", r.Temperature)
|
||||
}
|
||||
|
||||
request.Temperature = float32(r.Temperature)
|
||||
|
Reference in New Issue
Block a user