Skip to content

Commit

Permalink
Merge pull request OpenInterpreter#710 from InterwebAlchemy/feature/t…
Browse files Browse the repository at this point in the history
…emp-0

fix: default to 0 if temperature is unset
Former-commit-id: 286228d
Former-commit-id: 75856f9f325953bf2d5c305b662bdd3a2b64bc22
Former-commit-id: bf2b0882e15a49aae48c733eace3b89299a36453 [formerly c78c6349aec79caac5a5f801e7381a027b096789]
Former-commit-id: 240b431b1d75afba86ebda6bd09995a227e1382a
  • Loading branch information
KillianLucas authored Oct 28, 2023
2 parents 23c33e9 + 31c8cca commit bfc28e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interpreter/llm/setup_openai_coding_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def coding_llm(messages):
params["max_tokens"] = interpreter.max_tokens
if interpreter.temperature is not None:
params["temperature"] = interpreter.temperature

else:
params["temperature"] = 0.0

# These are set directly on LiteLLM
if interpreter.max_budget:
litellm.max_budget = interpreter.max_budget
Expand Down
2 changes: 2 additions & 0 deletions interpreter/llm/setup_text_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def base_llm(messages):
params["max_tokens"] = interpreter.max_tokens
if interpreter.temperature is not None:
params["temperature"] = interpreter.temperature
else:
params["temperature"] = 0.0

# These are set directly on LiteLLM
if interpreter.max_budget:
Expand Down

0 comments on commit bfc28e2

Please sign in to comment.