mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-07-03 14:10:18 +02:00
Update default model to gpt-4o (#580)
This commit is contained in:
@@ -395,7 +395,7 @@ CACHE_PATH=/tmp/shell_gpt/cache
|
||||
# Request timeout in seconds.
|
||||
REQUEST_TIMEOUT=60
|
||||
# Default OpenAI model to use.
|
||||
DEFAULT_MODEL=gpt-3.5-turbo
|
||||
DEFAULT_MODEL=gpt-4o
|
||||
# Default color for shell and code completions.
|
||||
DEFAULT_COLOR=magenta
|
||||
# When in --shell mode, default to "Y" for no input.
|
||||
@@ -422,7 +422,7 @@ Possible options for `CODE_THEME`: https://pygments.org/styles/
|
||||
│ prompt [PROMPT] The prompt to generate completions for. │
|
||||
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
||||
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────╮
|
||||
│ --model TEXT Large language model to use. [default: gpt-4-1106-preview] │
|
||||
│ --model TEXT Large language model to use. [default: gpt-4o] │
|
||||
│ --temperature FLOAT RANGE [0.0<=x<=2.0] Randomness of generated output. [default: 0.0] │
|
||||
│ --top-p FLOAT RANGE [0.0<=x<=1.0] Limits highest probable tokens (words). [default: 1.0] │
|
||||
│ --md --no-md Prettify markdown output. [default: md] │
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ DEFAULT_CONFIG = {
|
||||
"CHAT_CACHE_LENGTH": int(os.getenv("CHAT_CACHE_LENGTH", "100")),
|
||||
"CACHE_LENGTH": int(os.getenv("CHAT_CACHE_LENGTH", "100")),
|
||||
"REQUEST_TIMEOUT": int(os.getenv("REQUEST_TIMEOUT", "60")),
|
||||
"DEFAULT_MODEL": os.getenv("DEFAULT_MODEL", "gpt-4-1106-preview"),
|
||||
"DEFAULT_MODEL": os.getenv("DEFAULT_MODEL", "gpt-4o"),
|
||||
"DEFAULT_COLOR": os.getenv("DEFAULT_COLOR", "magenta"),
|
||||
"ROLE_STORAGE_PATH": os.getenv("ROLE_STORAGE_PATH", str(ROLE_STORAGE_PATH)),
|
||||
"DEFAULT_EXECUTE_SHELL_CMD": os.getenv("DEFAULT_EXECUTE_SHELL_CMD", "false"),
|
||||
|
||||
@@ -35,7 +35,7 @@ class TestShellGpt(TestCase):
|
||||
# Response streaming should be enabled for these tests.
|
||||
assert cfg.get("DISABLE_STREAMING") == "false"
|
||||
# ShellGPT optimised and tested with gpt-4 turbo.
|
||||
assert cfg.get("DEFAULT_MODEL") == "gpt-4-1106-preview"
|
||||
assert cfg.get("DEFAULT_MODEL") == "gpt-4o"
|
||||
# Make sure we will not call any functions.
|
||||
assert cfg.get("OPENAI_USE_FUNCTIONS") == "false"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user