mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-19 08:26:51 +00:00
feat:add summary label
This commit is contained in:
@@ -32,14 +32,14 @@ class ExtractRefineSummary(BaseChat):
|
||||
}
|
||||
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"""
|
||||
|
Reference in New Issue
Block a user