mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 01:09: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
|
request.Model = r.Model
|
||||||
|
|
||||||
if r.Temperature < 0 || r.Temperature > 1 {
|
if r.Temperature < 0 || r.Temperature > 2 {
|
||||||
return nil, fmt.Errorf("invalid temperature (0-1): %f", r.Temperature)
|
return nil, fmt.Errorf("invalid temperature (0-2): %f", r.Temperature)
|
||||||
}
|
}
|
||||||
|
|
||||||
request.Temperature = float32(r.Temperature)
|
request.Temperature = float32(r.Temperature)
|
||||||
|
@@ -47,8 +47,8 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="option">
|
<div class="option">
|
||||||
<label for="temperature" title="Temperature (0 - 1)"></label>
|
<label for="temperature" title="Temperature (0 - 2)"></label>
|
||||||
<input id="temperature" type="number" min="0" max="1" step="0.05" value="0.85" />
|
<input id="temperature" type="number" min="0" max="2" step="0.05" value="0.85" />
|
||||||
</div>
|
</div>
|
||||||
<div class="option none">
|
<div class="option none">
|
||||||
<label for="reasoning-effort" title="Reasoning Effort"></label>
|
<label for="reasoning-effort" title="Reasoning Effort"></label>
|
||||||
|
Reference in New Issue
Block a user