Skip to content

Commit 5b2a26a

Browse files
committed
fix
1 parent 341ca59 commit 5b2a26a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/agents/realtime/openai_realtime.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@
135135
RealtimeModelSendUserInput,
136136
)
137137

138-
FormatInput: TypeAlias = str | AudioPCM | AudioPCMU | AudioPCMA | Mapping[str, Any] | None
138+
FormatInput: TypeAlias = Union[
139+
str,
140+
AudioPCM,
141+
AudioPCMU,
142+
AudioPCMA,
143+
Mapping[str, Any],
144+
None,
145+
]
139146

140147

141148
# Avoid direct imports of non-exported names by referencing via module

0 commit comments

Comments
 (0)