Skip to content

Commit

Permalink
feat:add summary label
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries-ckt committed Nov 14, 2023
1 parent 85da219 commit 6281910
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pilot/scene/chat_knowledge/refine_summary/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def generate_input_values(self):
}
return input_values

# async def stream_call(self):
# last_output = None
# async for output in super().stream_call():
# last_output = output
# yield output
#
# last_output = f"<summary>{last_output}</summary>"
# yield last_output
async def stream_call(self):
last_output = None
async for output in super().stream_call():
last_output = output
yield output

last_output = f"<summary>{last_output}</summary>"
yield last_output

def stream_call_reinforce_fn(self, text):
"""return reference"""
Expand Down

0 comments on commit 6281910

Please sign in to comment.