Skip to content

internal error after specifying model #2

@jbellis

Description

@jbellis
Traceback (most recent call last):
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/sessions.py", line 85, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/starlette/routing.py", line 73, in app
    response = await f(request)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/fasthtml/core.py", line 427, in _endp
    if not resp: resp = await _wrap_call(self.f, req, self.sig.parameters)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/fasthtml/core.py", line 408, in _wrap_call
    return await _handle(f, wreq)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/fasthtml/core.py", line 215, in _handle
    return (await f(*args, **kwargs)) if is_async_callable(f) else await run_in_threadpool(f, *args, **kwargs)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/routes/home.py", line 20, in page
    programs = request.app.state.manager.programs
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/main.py", line 63, in manager
    self._manager = self.initialize_manager()
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/main.py", line 67, in initialize_manager
    return ManagerFactory(app)
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 82, in __init__
    self.setup_programs()
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 131, in setup_programs
    raise e
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 118, in setup_programs
    self.programs.append(
  File "/home/jonathan/miniforge3/envs/code-assistant/lib/python3.10/site-packages/code_assistant/assistants.py", line 42, in append
    super().append(item)
AttributeError: 'super' object has no attribute 'append'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions