Skip to content

Commit

Permalink
Merge pull request #137 from leehom0123/master
Browse files Browse the repository at this point in the history
issue fix: Call api api/local_doc_qa/local_doc_chat return data:None
  • Loading branch information
xixihahaliu authored Feb 26, 2024
2 parents 082fc67 + b1bad93 commit feba5fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qanything_kernel/connector/llm/llm_for_fastchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ def generatorAnswer(self, prompt: str,
history[-1] = [prompt, complete_answer]
answer_result = AnswerResult()
answer_result.history = history
answer_result.llm_output = {"answer": response_text}
if streaming:
answer_result.llm_output = {"answer": response_text}
else:
answer_result.llm_output = {"answer": complete_answer}
answer_result.prompt = prompt
yield answer_result

Expand Down

0 comments on commit feba5fb

Please sign in to comment.