Skip to content

Aegis AI chat broken #199

@andanders

Description

@andanders

Describe the bug
I send a message to the bot before LLM was configured and got
Error: Gateway error: 500 - {"error":{"message":"fetch failed","type":"api_error"}}

Then I set an LLM but every response is now
Error: Gateway error: 500 - {"error":{"message":"Unable to generate parser for this template. Automatic parser generation failed: \n------------\nWhile executing CallExpression at line 1, column 125 in source:\n...op.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user...\n ^\nError: Jinja Exception: Conversation roles must alternate user/assistant/user/assistant/...","type":"api_error"}}

To Reproduce

  1. Say Hi to the agent without a LLM
  2. Configure a LLM
  3. Say anything
  4. All replies are the same Gateway error 500

Expected behavior
A functioning chat agent or way to reset the chat.

Screenshots

Image

Desktop (please complete the following information):

  • OS: PopOS Ubuntu 24.04LTS
  • SharpAI 0.1.9 (installed with .deb)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions