MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / chat_stream

Method chat_stream

server/LLMHelper.py:20–28  ·  view source on GitHub ↗
(self, messages)

Source from the content-addressed store, hash-verified

18 return response.message.content
19
20 def chat_stream(self, messages):
21 response = ollama_chat(
22 model=self.model,
23 messages=messages,
24 stream=True,
25 )
26 for chunk in response:
27 if chunk.message and chunk.message.content:
28 yield chunk.message.content
29
30class LLMHelper:
31 def __init__(self, logger):

Callers 1

_stream_ollamaMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected