Skip to content

Commit

Permalink
Merge pull request #64 from MetaGLM/feature/voice-delta-0106
Browse files Browse the repository at this point in the history
【voice】add audio return
  • Loading branch information
haiyang679 authored Jan 6, 2025
2 parents 7ff4de5 + 89cf435 commit bfe72f4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zhipuai/types/chat/chat_completion_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"ChoiceDeltaFunctionCall",
"ChoiceDeltaToolCall",
"ChoiceDeltaToolCallFunction",
"AudioCompletionChunk"
]


Expand All @@ -29,11 +30,17 @@ class ChoiceDeltaToolCall(BaseModel):
function: Optional[ChoiceDeltaToolCallFunction] = None
type: Optional[str] = None

class AudioCompletionChunk(BaseModel):
id: Optional[str] = None
data: Optional[str] = None
expires_at: Optional[int] = None


class ChoiceDelta(BaseModel):
content: Optional[str] = None
role: Optional[str] = None
tool_calls: Optional[List[ChoiceDeltaToolCall]] = None
audio: Optional[AudioCompletionChunk] = None


class Choice(BaseModel):
Expand Down

0 comments on commit bfe72f4

Please sign in to comment.