#748·shell_gpt

Since update, Issu with function calling

Author: rcspamCreated Jan 28, 2026Updated Apr 6, 2026
$ sgpt  --help
Traceback (most recent call last):
  File "/home/user/.local/bin/sgpt", line 3, in <module>
    from sgpt import cli
  File "......./venvs/shell-gpt/lib/python3.12/site-packages/sgpt/__init__.py", line 1, in <module>
    from .app import main as main
  File "....../venvs/shell-gpt/lib/python3.12/site-packages/sgpt/app.py", line 13, in <module>
    from sgpt.function import get_openai_schemas
  File "....../venvs/shell-gpt/lib/python3.12/site-packages/sgpt/function.py", line 56, in <module>
    functions = [Function(str(path)) for path in functions_folder.glob("*.py")]
                 ^^^^^^^^^^^^^^^^^^^
  File "...../venvs/shell-gpt/lib/python3.12/site-packages/sgpt/function.py", line 15, in __init__
    self._openai_schema = module.Function.openai_schema()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'dict' object is not callable

If i remove the functions from the function directory, there is no more probleme

Cheers