mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
openai: do not set temperature to 0 when setting seed (#5045)
This commit is contained in:
parent
dd7c9ebeaf
commit
6b800aa7b7
@ -104,7 +104,6 @@ curl http://localhost:11434/v1/chat/completions \
|
|||||||
|
|
||||||
#### Notes
|
#### Notes
|
||||||
|
|
||||||
- Setting `seed` will always set `temperature` to `0`
|
|
||||||
- `finish_reason` will always be `stop`
|
- `finish_reason` will always be `stop`
|
||||||
- `usage.prompt_tokens` will be 0 for completions where prompt evaluation is cached
|
- `usage.prompt_tokens` will be 0 for completions where prompt evaluation is cached
|
||||||
|
|
||||||
|
@ -178,9 +178,6 @@ func fromRequest(r ChatCompletionRequest) api.ChatRequest {
|
|||||||
|
|
||||||
if r.Seed != nil {
|
if r.Seed != nil {
|
||||||
options["seed"] = *r.Seed
|
options["seed"] = *r.Seed
|
||||||
|
|
||||||
// temperature=0 is required for reproducible outputs
|
|
||||||
options["temperature"] = 0.0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.FrequencyPenalty != nil {
|
if r.FrequencyPenalty != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user