mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +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 text_callback:
|
||||
await text_callback(token.text)
|
||||
text += token.text
|
||||
return text
|
||||
|
Loading…
Reference in New Issue
Block a user