Skip to content

Commit

Permalink
Update default temperature range (TheR1D#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitamal authored May 5, 2023
1 parent 00b69e9 commit 5b5b321
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ Switch `SYSTEM_ROLES` to force use [system roles](https://help.openai.com/en/art
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --model [gpt-3.5-turbo|gpt-4|gpt-4-32k] OpenAI GPT model to use. [default: gpt-3.5-turbo] │
│ --temperature FLOAT RANGE [0.0<=x<=1.0] Randomness of generated output. [default: 0.1] │
│ --temperature FLOAT RANGE [0.0<=x<=2.0] Randomness of generated output. [default: 0.1] │
│ --top-probability FLOAT RANGE [0.1<=x<=1.0] Limits highest probable tokens (words). [default: 1.0] │
│ --editor Open $EDITOR to provide a prompt. [default: no-editor] │
│ --cache Cache completion results. [default: cache] │
Expand Down
2 changes: 1 addition & 1 deletion sgpt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def main(
temperature: float = typer.Option(
0.1,
min=0.0,
max=1.0,
max=2.0,
help="Randomness of generated output.",
),
top_probability: float = typer.Option(
Expand Down
2 changes: 1 addition & 1 deletion sgpt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _request(
:param messages: List of messages {"role": user or assistant, "content": message_string}
:param model: String gpt-3.5-turbo or gpt-3.5-turbo-0301
:param temperature: Float in 0.0 - 1.0 range.
:param temperature: Float in 0.0 - 2.0 range.
:param top_probability: Float in 0.0 - 1.0 range.
:return: Response body JSON.
"""
Expand Down

0 comments on commit 5b5b321

Please sign in to comment.