Unverified Commit 741079f3 authored by Jyong's avatar Jyong Committed by GitHub

fix annotation reply (#2127)

Co-authored-by: 's avatarjyong <jyong@dify.ai>
parent 0f5d4fd1
......@@ -493,6 +493,10 @@ class GenerateTaskPipeline:
'score': resource['score'],
'content': resource['content'],
})
# show annotation reply
if 'annotation_reply' in self._task_state.metadata:
if self._application_generate_entity.invoke_from in [InvokeFrom.DEBUGGER, InvokeFrom.SERVICE_API]:
metadata['annotation_reply'] = self._task_state.metadata['annotation_reply']
# show usage
if self._application_generate_entity.invoke_from in [InvokeFrom.DEBUGGER, InvokeFrom.SERVICE_API]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment