Skip to content

Commit

Permalink
Add low temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Jul 12, 2023
1 parent afec6a0 commit 9ce0647
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/llm_bash/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import (
)

func main() {
openai, err := llm.NewOpenAI(os.Getenv("OPENAI_API_KEY"))
openai, err := llm.NewOpenAI(os.Getenv("OPENAI_API_KEY"), func(o *llm.OpenAIOptions) {
o.Temperatur = 0.01
})
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 9ce0647

Please sign in to comment.