mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-20 08:59:30 +00:00
feat:add summary label
This commit is contained in:
@@ -32,14 +32,14 @@ class ExtractRefineSummary(BaseChat):
|
|||||||
}
|
}
|
||||||
return input_values
|
return input_values
|
||||||
|
|
||||||
# async def stream_call(self):
|
async def stream_call(self):
|
||||||
# last_output = None
|
last_output = None
|
||||||
# async for output in super().stream_call():
|
async for output in super().stream_call():
|
||||||
# last_output = output
|
last_output = output
|
||||||
# yield output
|
yield output
|
||||||
#
|
|
||||||
# last_output = f"<summary>{last_output}</summary>"
|
last_output = f"<summary>{last_output}</summary>"
|
||||||
# yield last_output
|
yield last_output
|
||||||
|
|
||||||
def stream_call_reinforce_fn(self, text):
|
def stream_call_reinforce_fn(self, text):
|
||||||
"""return reference"""
|
"""return reference"""
|
||||||
|
Reference in New Issue
Block a user