Skip to content

Commit

Permalink
make some fields in OpenaiFileIdRef optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent2916 authored and deltheil committed Jan 29, 2025
1 parent eea8af3 commit 9692644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/chatgpt/src/chatgpt_bridge/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def json_error(message: str, status: int = 400) -> Response:

class OpenaiFileIdRef(BaseModel):
# https://platform.openai.com/docs/actions/sending-files
id: str
name: str
mime_type: str
id: str | None = None
name: str | None = None
mime_type: str | None = None
download_link: str


Expand Down

0 comments on commit 9692644

Please sign in to comment.