Update default temperature range (#223)

This commit is contained in:
eitamal
2023-05-06 00:10:57 +10:00
committed by GitHub
parent 00b69e950e
commit 5b5b321648
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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] │
+1 -1
View File
@@ -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(
+1 -1
View File
@@ -33,7 +33,7 @@ class OpenAIClient:
: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.
"""