MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / stream_generate

Method stream_generate

paperflow/providers/llm.py:45–52  ·  view source on GitHub ↗
(
        self,
        prompt: str,
        *,
        system: Optional[str] = None,
        temperature: float = 0.0,
        max_tokens: int = 1024,
    )

Source from the content-addressed store, hash-verified

43 ) -> LLMResponse: ...
44
45 def stream_generate(
46 self,
47 prompt: str,
48 *,
49 system: Optional[str] = None,
50 temperature: float = 0.0,
51 max_tokens: int = 1024,
52 ) -> Iterator[str]: ...
53
54
55def _chunk_text(text: str, size: int = 24) -> Iterator[str]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected