MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / complete_stream

Method complete_stream

python/src/llm/client.rs:714–723  ·  view source on GitHub ↗
(
        &self,
        prompt: String,
        max_tokens: Option<i64>,
        temperature: Option<f64>,
        py: Python<'a>,
    )

Source from the content-addressed store, hash-verified

712 /// Stream completion (alias for backward compatibility)
713 #[pyo3(signature = (prompt, max_tokens=None, temperature=None))]
714 fn complete_stream<'a>(
715 &self,
716 prompt: String,
717 max_tokens: Option<i64>,
718 temperature: Option<f64>,
719 py: Python<'a>,
720 ) -> PyResult<Bound<'a, PyAny>> {
721 let iterator = self.stream(prompt, max_tokens, temperature)?;
722 Ok(Bound::new(py, iterator)?.into_any())
723 }
724
725 /// Get comprehensive client statistics
726 fn get_stats<'a>(&self, py: Python<'a>) -> PyResult<Bound<'a, PyDict>> {

Calls 1

streamMethod · 0.45