| 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>> { |