mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-24 03:52:10 +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:
@@ -255,4 +255,5 @@ class HuggingFaceTextGenInference(LLM):
|
||||
if not token.special:
|
||||
if text_callback:
|
||||
await text_callback(token.text)
|
||||
text += token.text
|
||||
return text
|
||||
|
Reference in New Issue
Block a user