Completion Messages
Send Completion Message
Changed onAvailable for: Text Generator apps.
Sends a request to a text-generation app and returns the generated text.
post/completion-messages
Request
- Base URLhttps://api.dify.ai/v1
- URLhttps://api.dify.ai/v1/completion-messages
- AuthHTTP bearer
Request body
Completion Request required(unresolved $ref)
Response
Successful response. The content type and structure depend on the response_mode parameter in the request.
- If response_mode is blocking, returns application/json with a CompletionResponse object.
- If response_mode is streaming, returns text/event-stream with a stream of ChunkCompletionEvent objects.
Changes
- info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status
- info