-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: 去除工作流直接返回内容的标题数据 #1575
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
Closed
Closed
feat: 去除工作流直接返回内容的标题数据 #1575
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,11 +304,11 @@ def await_result(self, result): | |
if chunk is None: | ||
break | ||
yield chunk | ||
yield self.get_chunk_content('', True) | ||
finally: | ||
self.work_flow_post_handler.handler(self.params['chat_id'], self.params['chat_record_id'], | ||
self.answer, | ||
self) | ||
yield self.get_chunk_content('', True) | ||
|
||
def run_chain_async(self, current_node): | ||
future = executor.submit(self.run_chain, current_node) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 该段代码看起来是用于处理与对话相关的任务的,但它包含了一些不太一致的地方。以下是针对这些地方提出的一些建议:
通过实施上述修改,代码的质量会更高,更符合编程规范和最佳实践的要求。请根据最新的编程标准更新这段代码,以使其更加现代和健壮。 |
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有发现明显的问题或异常,在现有的情况下是正确的。如果您有任何其他特殊要求或特定问题,请告诉我,以便我为您提供更详细和针对性的反馈。