Commit 67311f90 by 范立洲

fix: missed paremeter

parent 350c6514
...@@ -25,7 +25,9 @@ class QABot(BaseQDBot): ...@@ -25,7 +25,9 @@ class QABot(BaseQDBot):
# line format: 问题,答案, type, 意图 # line format: 问题,答案, type, 意图
return BotPayload(question=line[0], answer=line[1], type=line[2]).to_dict() return BotPayload(question=line[0], answer=line[1], type=line[2]).to_dict()
def complete(self, prompt: str, score: float = 0, limit: int = 0) -> BotPayload: def complete(
self, prompt: str, score: float = 0, limit: int = 0, stream: bool = False
) -> BotPayload:
_limit = self.limit if limit == 0 else limit _limit = self.limit if limit == 0 else limit
_score = self.score if score == 0 else score _score = self.score if score == 0 else score
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论