feat : simpler, better terminal color

This commit is contained in:
martin legrand committed 2025-03-29 15:53:27 +01:00
1 parent e69cff0735
commit 862a78276f
2 files changed
+57 -46

No files matched your search

+2 -1
View File
@@ -28,7 +28,8 @@ class LlamacppLLM(GeneratorLLM):
output = self.llm.create_chat_completion(
messages = history
)
self.state.current_buffer = output
with self.state.lock:
self.state.current_buffer = output
except Exception as e:
self.logger.error(f"Error: {e}")
finally: