Skip to content

LLM2 not working #49

@sergiupapuc

Description

@sergiupapuc

...when try to chat with llm2

{"reqId":"f2fi08K9R7ls6cJHEZt1","level":3,"time":"2025-02-18T11:14:53+00:00","remoteAddr":"2a00:5dc2:11:1::34","user":"--","app":"llm2","method":"POST","url":"/ocs/v1.php/apps/app_api/api/v1/log?format=json","message":"'dict' object has no attribute 'role'","userAgent":"python-httpx/0.27.2","version":"30.0.6.2","data":{"app":"llm2"},"id":"67b46c8cef9f9"}

{"reqId":"kuzZtJGAvXMvHo4Fcbwv","level":3,"time":"2025-02-18T11:14:53+00:00","remoteAddr":"2a00:5dc2:11:1::34","user":"--","app":"llm2","method":"POST","url":"/ocs/v1.php/apps/app_api/api/v1/log?format=json","message":"Error: Traceback (most recent call last):\n File "/app/lib/main.py", line 114, in background_thread_task\n result = task_processor(task.get("input"))\n File "/app/lib/chat.py", line 29, in call\n [(message.role, message.content) for message in [json.loads(message) for message in inputs['history']]] + [('human', inputs['input'])]\n File "/app/lib/chat.py", line 29, in \n [(message.role, message.content) for message in [json.loads(message) for message in inputs['history']]] + [('human', inputs['input'])]\nAttributeError: 'dict' object has no attribute 'role'\n","userAgent":"python-httpx/0.27.2","version":"30.0.6.2","data":{"app":"llm2"},"id":"67b46c8cef9fe"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions