mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 23:54:14 +00:00
One Line Fix: missing text output with huggingface TGI LLM (#7972)
Small bug fix. The async _call method was missing a line to return the generated text. @baskaryan
This commit is contained in:
parent
493cbc9410
commit
0ffb7fc10c
@ -255,4 +255,5 @@ class HuggingFaceTextGenInference(LLM):
|
|||||||
if not token.special:
|
if not token.special:
|
||||||
if text_callback:
|
if text_callback:
|
||||||
await text_callback(token.text)
|
await text_callback(token.text)
|
||||||
|
text += token.text
|
||||||
return text
|
return text
|
||||||
|
Loading…
Reference in New Issue
Block a user