mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-07-03 14:10:18 +02:00
Update default temperature range (#223)
This commit is contained in:
@@ -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
@@ -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
@@ -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.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user