From 5ae60e0f9481a3d416ff147edf4f391644e4553c Mon Sep 17 00:00:00 2001 From: Laura Date: Sun, 10 Aug 2025 22:39:18 +0200 Subject: [PATCH] temperature 0-2 --- chat.go | 4 ++-- static/index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chat.go b/chat.go index 5d4bc8c..05acb3a 100644 --- a/chat.go +++ b/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) diff --git a/static/index.html b/static/index.html index bce0e4c..f3e6f50 100644 --- a/static/index.html +++ b/static/index.html @@ -47,8 +47,8 @@
- - + +