From 0496eb1e36a01c9ccc14ead1683f84a38c4a7417 Mon Sep 17 00:00:00 2001 From: Marcel Petrick Date: Thu, 23 Jul 2026 18:04:56 +0200 Subject: [PATCH] fix(docs): correct typos found during code review Non-functional changes only: - Fixed minor spelling mistakes in comments - Corrected typos in user-facing strings - No variables, logic, or functional code was modified. Signed-off-by: Marcel Petrick --- src/openai/lib/streaming/chat/_completions.py | 2 +- .../conversation_item_input_audio_transcription_delta_event.py | 2 +- src/openai/types/realtime/realtime_error_event.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openai/lib/streaming/chat/_completions.py b/src/openai/lib/streaming/chat/_completions.py index 5f072cafbd..3e6eae7cd4 100644 --- a/src/openai/lib/streaming/chat/_completions.py +++ b/src/openai/lib/streaming/chat/_completions.py @@ -379,7 +379,7 @@ def _accumulate_chunk(self, chunk: ChatCompletionChunk) -> ParsedChatCompletionS choice_snapshot.message, # we don't want to serialise / deserialise our custom properties # as they won't appear in the delta and we don't want to have to - # continuosly reparse the content + # continuously reparse the content exclude=cast( # cast required as mypy isn't smart enough to infer `True` here to `Literal[True]` IncEx, diff --git a/src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py b/src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py index 5f3f54810f..5273aeca86 100644 --- a/src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py +++ b/src/openai/types/realtime/conversation_item_input_audio_transcription_delta_event.py @@ -32,7 +32,7 @@ class ConversationItemInputAudioTranscriptionDeltaEvent(BaseModel): logprobs: Optional[List[LogProbProperties]] = None """The log probabilities of the transcription. - These can be enabled by configurating the session with + These can be enabled by configuring the session with `"include": ["item.input_audio_transcription.logprobs"]`. Each entry in the array corresponds a log probability of which token would be selected for this chunk of transcription. This can help to identify if it was possible there were diff --git a/src/openai/types/realtime/realtime_error_event.py b/src/openai/types/realtime/realtime_error_event.py index 574464b29e..cfcbc6de5a 100644 --- a/src/openai/types/realtime/realtime_error_event.py +++ b/src/openai/types/realtime/realtime_error_event.py @@ -12,7 +12,7 @@ class RealtimeErrorEvent(BaseModel): """ Returned when an error occurs, which could be a client problem or a server problem. Most errors are recoverable and the session will stay open, we - recommend to implementors to monitor and log error messages by default. + recommend to implementers to monitor and log error messages by default. """ error: RealtimeError