Skip to content

Commit

Permalink
fix: Azure realtime model does not accept null for max_response_outpu…
Browse files Browse the repository at this point in the history
…t_tokens (#927)
  • Loading branch information
davidzhao authored Oct 16, 2024
1 parent ee096f9 commit d15eb4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-boxes-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-plugins-openai": patch
---

fix: Azure realtime model does not accept null for max_response_output_tokens
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,8 @@ def session_update(
session_data["max_response_output_tokens"] = (
self._opts.max_response_output_tokens
)
else:
del session_data["max_response_output_tokens"] # type: ignore

self._queue_msg(
{
Expand Down

0 comments on commit d15eb4d

Please sign in to comment.