the message api doc has wrong infomation #9470

Closed
opened 2026-02-21 18:35:06 -05:00 by yindo · 0 comments
Owner

Originally created by @marsDes on GitHub (Mar 5, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

fetch Get Conversation History Messages api

curl -X GET 'https://api.dify.ai/v1/messages?user=abc-123&conversation_id='\
 --header 'Authorization: Bearer {api_key}'

✔️ Expected Behavior

return expected respond like this

...
agent_thoughts": [
                {
                    "id": "592c84cf-07ee-441c-9dcc-ffc66c033469",
                    "chain_id": null,
                    "message_id": "d35e006c-7c4d-458f-9142-be4930abdf94",
                    "position": 1,
                    "thought": "",
                    "tool": "dalle2",
                    "tool_input": "{\"dalle2\": {\"prompt\": \"cat\"}}",
                    "created_at": 1705988186,
                    "observation": "image has been created and sent to user already, you should tell user to check it now.",
                    "message_files": [
                        "976990d2-5294-47e6-8f14-7356ba9d2d76"
                    ]
                },
...

Actual Behavior

retrun object array not string array

agent_thoughts": [
                {
                    "id": "592c84cf-07ee-441c-9dcc-ffc66c033469",
                    "chain_id": null,
                    "message_id": "d35e006c-7c4d-458f-9142-be4930abdf94",
                    "position": 1,
                    "thought": "",
                    "tool": "dalle2",
                    "tool_input": "{\"dalle2\": {\"prompt\": \"cat\"}}",
                    "created_at": 1705988186,
                    "observation": "image has been created and sent to user already, you should tell user to check it now.",
                    "message_files": [
                        {
                            "id": null,
                            "filename": null,
                            "type": null,
                            "url": null,
                            "mime_type": null,
                            "size": 0,
                            "transfer_method": null,
                            "belongs_to": "user"
                        }
                    ]
                },

Image

Originally created by @marsDes on GitHub (Mar 5, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce fetch Get Conversation History Messages api ``` curl -X GET 'https://api.dify.ai/v1/messages?user=abc-123&conversation_id='\ --header 'Authorization: Bearer {api_key}' ``` ### ✔️ Expected Behavior return expected respond like this ``` ... agent_thoughts": [ { "id": "592c84cf-07ee-441c-9dcc-ffc66c033469", "chain_id": null, "message_id": "d35e006c-7c4d-458f-9142-be4930abdf94", "position": 1, "thought": "", "tool": "dalle2", "tool_input": "{\"dalle2\": {\"prompt\": \"cat\"}}", "created_at": 1705988186, "observation": "image has been created and sent to user already, you should tell user to check it now.", "message_files": [ "976990d2-5294-47e6-8f14-7356ba9d2d76" ] }, ... ``` ### ❌ Actual Behavior retrun object array not string array ``` agent_thoughts": [ { "id": "592c84cf-07ee-441c-9dcc-ffc66c033469", "chain_id": null, "message_id": "d35e006c-7c4d-458f-9142-be4930abdf94", "position": 1, "thought": "", "tool": "dalle2", "tool_input": "{\"dalle2\": {\"prompt\": \"cat\"}}", "created_at": 1705988186, "observation": "image has been created and sent to user already, you should tell user to check it now.", "message_files": [ { "id": null, "filename": null, "type": null, "url": null, "mime_type": null, "size": 0, "transfer_method": null, "belongs_to": "user" } ] }, ``` ![Image](https://github.com/user-attachments/assets/8912da5e-b5c7-45b8-8a21-cb5cc11ad25d)
yindo added the 📚 documentation label 2026-02-21 18:35:06 -05:00
yindo closed this issue 2026-02-21 18:35:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9470