[call to fail] 'models' parameter within the 'messages' #978

Closed
opened 2025-11-11 14:34:47 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @bahuzh on GitHub (May 20, 2024).

Open WebUI Version: 0.1.125

"The request I sent includes an additional 'models' parameter within the 'messages' which has caused the call to fail. This is inconsistent with the method of invocation described in the Chat API Reference.

Here is the request:

{
    "chat":  {
      "id":  "",
      "title":  "123",
      "models":  [
        "xxx"
      ],
      "options":  {},
      "messages":  [
        {
          "id":  "d1ec4766-f313-4996-9f77-a172f754a612",
          "parentId":  null,
          "childrenIds":  [
            "7b731959-7fbb-405e-bc5c-58e61bac7308"
          ],
          "role":  "user",
          "content":  "123",
          "models":  [
            "xxx"
          ],
          "timestamp":  1716194703
        },
        {
          "parentId":  "d1ec4766-f313-4996-9f77-a172f754a612",
          "id":  "7b731959-7fbb-405e-bc5c-58e61bac7308",
          "childrenIds":  [],
          "role":  "assistant",
          "content":  "[prompt  illegal]",
          "model":  "xxx",
          "userContext":  null,
          "timestamp":  1716194704,
          "done":  true
        }
      ]
    }
}

The inclusion of the 'models' parameter within the 'messages' is not consistent with the expected format, leading to the failure of the call."

Originally created by @bahuzh on GitHub (May 20, 2024). **Open WebUI Version: 0.1.125** "The request I sent includes an additional 'models' parameter within the 'messages' which has caused the call to fail. This is inconsistent with the method of invocation described in the [Chat API Reference](https://platform.openai.com/docs/api-reference/chat). Here is the request: ```json { "chat": { "id": "", "title": "123", "models": [ "xxx" ], "options": {}, "messages": [ { "id": "d1ec4766-f313-4996-9f77-a172f754a612", "parentId": null, "childrenIds": [ "7b731959-7fbb-405e-bc5c-58e61bac7308" ], "role": "user", "content": "123", "models": [ "xxx" ], "timestamp": 1716194703 }, { "parentId": "d1ec4766-f313-4996-9f77-a172f754a612", "id": "7b731959-7fbb-405e-bc5c-58e61bac7308", "childrenIds": [], "role": "assistant", "content": "[prompt illegal]", "model": "xxx", "userContext": null, "timestamp": 1716194704, "done": true } ] } } ``` The inclusion of the 'models' parameter within the 'messages' is not consistent with the expected format, leading to the failure of the call."
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#978