Update default model to gpt-5.4-nano (#761)

This commit is contained in:
Copilot
2026-05-06 05:20:11 +02:00
committed by GitHub
parent 29b77522ca
commit 9d6e75dfe8
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -374,7 +374,7 @@ CACHE_PATH=/tmp/shell_gpt/cache
# Request timeout in seconds.
REQUEST_TIMEOUT=60
# Default OpenAI model to use.
DEFAULT_MODEL=gpt-4o
DEFAULT_MODEL=gpt-5.4-mini
# Default color for shell and code completions.
DEFAULT_COLOR=magenta
# When in --shell mode, default to "Y" for no input.
@@ -401,7 +401,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-4o] │
│ --model TEXT Large language model to use. [default: gpt-5.4-mini] │
│ --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
View File
@@ -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-4o"),
"DEFAULT_MODEL": os.getenv("DEFAULT_MODEL", "gpt-5.4-mini"),
"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"),
+4 -4
View File
@@ -34,8 +34,8 @@ class TestShellGpt(TestCase):
def setUpClass(cls):
# 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-4o"
# ShellGPT optimised and tested with gpt-5.4-mini.
assert cfg.get("DEFAULT_MODEL") == "gpt-5.4-mini"
# Make sure we will not call any functions.
assert cfg.get("OPENAI_USE_FUNCTIONS") == "false"
@@ -400,10 +400,10 @@ class TestShellGpt(TestCase):
def test_color_output(self):
color = cfg.get("DEFAULT_COLOR")
role = SystemRole.get("ShellGPT")
handler = Handler(role=role)
handler = Handler(role=role, markdown=False)
assert handler.color == color
os.environ["DEFAULT_COLOR"] = "red"
handler = Handler(role=role)
handler = Handler(role=role, markdown=False)
assert handler.color == "red"
def test_simple_stdin(self):