Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't the /chat-messages API allow passes context messages as a list? #3868

Closed
3 of 4 tasks
jamie0725 opened this issue Apr 26, 2024 · 0 comments
Closed
3 of 4 tasks
Labels
💪 enhancement New feature or request

Comments

@jamie0725
Copy link

jamie0725 commented Apr 26, 2024

Self Checks

  • 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).
  • Pleas do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

Hi, I am new to the platform, but while I look through the API documentation (as attached below), I notice that the user is not allowed to pass the context history on his own. The feature is important for customer support scenarios where the AI agent is not the only responder in the conversation (i.e., there might be a human agent and other business messages previously involved). This means that relying solely on the context history of the agent will not suffice to answer the user's question:

curl -X POST 'https://api.dify.ai/v1/chat-messages' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "inputs": {},
    "query": "What are the specs of the iPhone 13 Pro Max?",
    "response_mode": "streaming",
    "conversation_id": "",
    "user": "abc-123",
    "files": [
      {
        "type": "image",
        "transfer_method": "remote_url"
        "url": "https://cloud.dify.ai/logo/logo-site.png"
      }
    ]
}'

2. Describe the feature you'd like to see

I'd like to have the query field to support list conversations to carry the context (similar to ChatGPT messages), and in this case not using the context information of the dify platform.
image

3. How will this feature improve your workflow or experience?

a must for customer support, if no workaround is available.

4. Additional context or comments

No response

5. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added the 💪 enhancement New feature or request label Apr 26, 2024
@langgenius langgenius locked and limited conversation to collaborators Apr 26, 2024
@crazywoola crazywoola converted this issue into discussion #3869 Apr 26, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
💪 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant