diff --git a/README.md b/README.md index 6cc77a5..8b41447 100644 --- a/README.md +++ b/README.md @@ -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] │ diff --git a/sgpt/app.py b/sgpt/app.py index 441b01a..dc47405 100644 --- a/sgpt/app.py +++ b/sgpt/app.py @@ -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( diff --git a/sgpt/client.py b/sgpt/client.py index f500d66..43f8db7 100644 --- a/sgpt/client.py +++ b/sgpt/client.py @@ -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. """