Skip to content

Commit

Permalink
updated metadata to map type and turn detection type
Browse files Browse the repository at this point in the history
  • Loading branch information
tinalenguyen committed Jan 3, 2025
1 parent 898e8ae commit 2e37935
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class ResponseCreateData(TypedDict, total=False):
tool_choice: ToolChoice
temperature: float
max_output_tokens: int | Literal["inf"]
metadata: dict[str, str] | None
metadata: map | None
conversation: Literal["auto", "none"]

class ResponseCreate(TypedDict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class RealtimeResponse:
"""timestamp when the response was created"""
_first_token_timestamp: float | None = None
"""timestamp when the first token was received"""
metadata: dict[str, str] | None = None
metadata: map | None = None
"""developer-provided string key-value pairs"""


Expand Down Expand Up @@ -167,7 +167,7 @@ class RealtimeSessionOptions:
input_audio_format: api_proto.AudioFormat
output_audio_format: api_proto.AudioFormat
input_audio_transcription: InputTranscriptionOptions | None
turn_detection: ServerVadOptions | None
turn_detection: ServerVadOptions | Literal["None"] | None
tool_choice: api_proto.ToolChoice
temperature: float
max_response_output_tokens: int | Literal["inf"]
Expand Down

0 comments on commit 2e37935

Please sign in to comment.