Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sgpt without any flag return error #656

Open
bash-bandicoot opened this issue Dec 16, 2024 · 0 comments
Open

sgpt without any flag return error #656

bash-bandicoot opened this issue Dec 16, 2024 · 0 comments

Comments

@bash-bandicoot
Copy link

If I execute sgpt without any flag (--help for example), it throws errors:

`$ sgpt

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/kkogan/.local/.sgpt_venv/lib/python3.12/site-packages/sgpt/app.py:229 in main │
│ │
│ 226 │ │ │ functions=function_schemas, │
│ 227 │ │ ) │
│ 228 │ else: │
│ ❱ 229 │ │ full_completion = DefaultHandler(role_class, md).handle( │
│ 230 │ │ │ prompt=prompt, │
│ 231 │ │ │ model=model, │
│ 232 │ │ │ temperature=temperature, │
│ │
│ ╭─────────────────────────────── locals ────────────────────────────────╮ │
│ │ cache = True │ │
│ │ chat = None │ │
│ │ code = False │ │
│ │ create_role = None │ │
│ │ describe_shell = False │ │
│ │ editor = False │ │
│ │ function_schemas = None │ │
│ │ functions = True │ │
│ │ install_functions = None │ │
│ │ install_integration = None │ │
│ │ interaction = True │ │
│ │ list_chats = None │ │
│ │ list_roles = None │ │
│ │ md = True │ │
│ │ model = 'llama-3.3-70b-instruct' │ │
│ │ prompt = '' │ │
│ │ repl = None │ │
│ │ role = None │ │
│ │ role_class = <sgpt.role.SystemRole object at 0x7164bb72ef30> │ │
│ │ shell = False │ │
│ │ show_chat = None │ │
│ │ show_role = None │ │
│ │ stdin_passed = False │ │
│ │ temperature = 0.0 │ │
│ │ top_p = 1.0 │ │
│ │ version = None │ │
│ ╰───────────────────────────────────────────────────────────────────────╯ `

All clear if I add any parameter or question:

sgpt "who are you?" I am ShellGPT, a programming and system administration assistant. I manage a Linux/Ubuntu 24.04.1 LTS operating system with bash shell. I'm here to help with coding, system administration, and Linux-related tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant