Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update return value #804

davidmezzetti9ddfc413066d
diff --git a/src/python/txtai/pipeline/llm/generation.py b/src/python/txtai/pipeline/llm/generation.py
index 179acefe..34d22789 100644
--- a/src/python/txtai/pipeline/llm/generation.py
+++ b/src/python/txtai/pipeline/llm/generation.py
@@ -83,7 +83,7 @@ class Generation:
return self.stream(texts, maxlength, stream, stop, **kwargs)
# Full response as content elements
- return self.stream(texts, maxlength, stream, stop, **kwargs)
+ return list(self.stream(texts, maxlength, stream, stop, **kwargs))
def clean(self, prompt, result):
"""