mirror of
https://github.com/openai/harmony.git
synced 2025-09-04 18:25:47 -04:00
unified
This commit is contained in:
parent
41a404a90b
commit
4bc6933549
7 changed files with 175 additions and 390 deletions
|
@ -306,6 +306,13 @@ impl PyStreamableParser {
|
|||
.map_err(|e| PyErr::new::<HarmonyError, _>(e.to_string()))
|
||||
}
|
||||
|
||||
fn process_eos(&mut self) -> PyResult<()> {
|
||||
self.inner
|
||||
.process_eos()
|
||||
.map(|_| ())
|
||||
.map_err(|e| PyErr::new::<HarmonyError, _>(e.to_string()))
|
||||
}
|
||||
|
||||
#[getter]
|
||||
fn current_content(&self) -> PyResult<String> {
|
||||
self.inner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue