The completion-messages interface returns an exception #7399

Closed
opened 2026-02-21 18:20:25 -05:00 by yindo · 1 comment
Owner

Originally created by @silence-pan84 on GitHub (Dec 25, 2024).

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

0.13.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When calling the "v1/completion-messages" interface, the answer content is sometimes extra: “JpaRepository for storing and retrieving data is not applicable here as the task involves natural language processing and keyword extraction, which does not require a database operation. The provided solution directly addresses the given instruction by extracting relevant keywords from the text regarding location, subject, and complaint type in JSON format.
image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @silence-pan84 on GitHub (Dec 25, 2024). ### 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 0.13.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When calling the "v1/completion-messages" interface, the answer content is sometimes extra: “JpaRepository for storing and retrieving data is not applicable here as the task involves natural language processing and keyword extraction, which does not require a database operation. The provided solution directly addresses the given instruction by extracting relevant keywords from the text regarding location, subject, and complaint type in JSON format. ![image](https://github.com/user-attachments/assets/a570b6f7-fd49-4c99-8d07-a88604507512) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug🤔 cant-reproducestale labels 2026-02-21 18:20:25 -05:00
yindo closed this issue 2026-02-21 18:20:25 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 25, 2024):

The v1/completion-messages interface in the Dify codebase can throw several specific exceptions, which might be relevant to the issue you're experiencing. These exceptions include:

  • NotFound with the message "Conversation Not Exists."
  • ConversationCompletedError
  • AppUnavailableError
  • ProviderNotInitializeError
  • ProviderQuotaExceededError
  • ProviderModelCurrentlyNotSupportError
  • CompletionRequestError
  • InternalServerError [1][2].

If the response content is unexpectedly including additional information, it might be due to the configuration of the model parameters or prompt templates used in the request. Ensure that the inputs and configurations are set correctly to avoid such issues. If the problem persists, reviewing the specific inputs and configurations used in the request might help identify the cause.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 25, 2024): <!-- Answer --> The `v1/completion-messages` interface in the Dify codebase can throw several specific exceptions, which might be relevant to the issue you're experiencing. These exceptions include: - `NotFound` with the message "Conversation Not Exists." - `ConversationCompletedError` - `AppUnavailableError` - `ProviderNotInitializeError` - `ProviderQuotaExceededError` - `ProviderModelCurrentlyNotSupportError` - `CompletionRequestError` - `InternalServerError` <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/controllers/console/explore/completion.py)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/controllers/console/app/completion.py)</sup>. If the response content is unexpectedly including additional information, it might be due to the configuration of the model parameters or prompt templates used in the request. Ensure that the inputs and configurations are set correctly to avoid such issues. If the problem persists, reviewing the specific inputs and configurations used in the request might help identify the cause. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/0ea3b566-ec4a-4a33-b58c-226380b176fd?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/0ea3b566-ec4a-4a33-b58c-226380b176fd?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/0ea3b566-ec4a-4a33-b58c-226380b176fd?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/0ea3b566-ec4a-4a33-b58c-226380b176fd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0ea3b566-ec4a-4a33-b58c-226380b176fd?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/0ea3b566-ec4a-4a33-b58c-226380b176fd?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7399