mirror of
https://github.com/openai/harmony.git
synced 2025-08-23 01:17:09 -04:00
unified
This commit is contained in:
parent
41a404a90b
commit
4bc6933549
7 changed files with 175 additions and 390 deletions
|
@ -29,7 +29,7 @@ from typing import (
|
|||
)
|
||||
|
||||
import re
|
||||
from pydantic import BaseModel, Field, root_validator, validator
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
# Re-export the low-level Rust bindings under a private name so that we can
|
||||
# keep the *public* namespace clean and purely Pythonic.
|
||||
|
@ -612,6 +612,10 @@ class StreamableParser:
|
|||
self._inner.process(token)
|
||||
return self
|
||||
|
||||
def process_eos(self) -> "StreamableParser":
|
||||
self._inner.process_eos()
|
||||
return self
|
||||
|
||||
@property
|
||||
def current_content(self) -> str:
|
||||
return self._inner.current_content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue