Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add inserted_additional_messages to chat response #169

Merged
merged 4 commits into from
Jan 20, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cozepy/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ class ChatUsage(CozeModel):
input_count: int = 0


class ChatInsertedAdditionalMessage(CozeModel):
id: str


class Chat(CozeModel):
# The ID of the chat.
id: str
Expand Down Expand Up @@ -317,6 +321,7 @@ class Chat(CozeModel):
# Detailed information about Token consumption.
usage: Optional[ChatUsage] = None

inserted_additional_messages: Optional[List[ChatInsertedAdditionalMessage]] = None

class ChatPoll(CozeModel):
chat: Chat
Expand Down
Loading