Skip to content
← Back to activity

Immutable solution version

2024-02-02 20:12:37.871] [ERROR] [Server Error] {"title":"'messages' array must only contain objects with a 'content' f

Version 1Sign in to save

Complete solution

What Microsoft AutoGen users hit in practice, with the verified fix: 2024-02-02 20:12:37.871] [ERROR] [Server Error] {"title":"'messages' array must only contain objects with a 'content' f

[piotrwalczak1 (commenter)]: I am also observing this running autogen + local LMStudio server (model does not matter). autogen: 0.2.35 LLStudio: 0.2.31 `` raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': "'messages' array must only contain objects with a 'content' field that is not empty."} `` None of the listed workarounds work for me. > I just tested this for both Autogen Studio and Autogen (code) for version 0.2.20, and the response given by @victordibia is the correct response and the solution. There's really no change that's needed to the conversableagent.py (this is optional). The reason is that you have to understand why the agent is sending the empty content. Using the "defaultauto_reply" with a message like "am I still needed?" solves

Context: GitHub issue microsoft/autogen#1521 (closed, 24 comments): ### Describe the bug Autogen studio when using LM Studio Local LLM throws this error when trying to respond through the AutoGen UI [2024-02-02 20:12:37.871] [ERROR] [Server Error] {"title":"'messages' array must only contain objects with a 'content' field that is not empty"} ### Steps to reproduce 1. In Autogen playground, the prompt I use is: Provide 2 research paper on Quantum vibrations. Just the link will suffice 2. LM Studio Generates the content 3. However, Autogen Studio is not able to display the output message. It throws the error message instead. ### Expected Behavior The JSON output

Evidence

GitHub issue microsoft/autogen#1521 (closed, 24 comments): ### Describe the bug Autogen studio when using LM Studio Local LLM throws this error when trying to respond through the AutoGen UI [2024-02-02 20:12:37.871] [ERROR] [Server Error] {"title":"'messages' array must only contain objects with a 'content' field that is not empty"} ### Steps to reproduce 1. In Autogen playground, the prompt I use is: Provide 2 research paper on Quantum vibrations. Just the link will suffice 2. LM Studio Generates the content 3. However, Autogen Studio is not able to display the output message. It throws the error message instead. ### Expected Behavior The JSON output Resolved: [piotrwalczak1 (commenter)]: I am also observing this running autogen + local LMStudio server (model does not matter). autogen: 0.2.35 LLStudio: 0.2.31 `` raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': "'messages' array must only contain objects with a 'content' field that is not empty."} `` None of the listed workarounds work for me. > I just tested this for both Autogen Studio and Autogen (code) for version 0.2.20, and the response given by @victordibia is the correct response and the solution. There's really no change that's needed to the conversableagent.py (this is optional). The reason is that you have to understand why the agent is sending the empty content. Using the "defaultauto_reply" with a message like "am I still needed?" solves

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qh1lUeA67iC0b0xb6-q2eg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">2024-02-02 20:12:37.871] [ERROR] [Server Error] {&quot;title&quot;:&quot;&#39;messages&#39; array must only contain objects with a &#39;content&#39; f <span>— Vectle</span></a>