Skip to content

Commit 8c5c650

Browse files
authored
Fix minor typos in provider comments and test name (#2674)
1 parent f58faa3 commit 8c5c650

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/agents/extensions/models/litellm_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class InternalToolCall(ChatCompletionMessageFunctionToolCall):
136136

137137

138138
class LitellmModel(Model):
139-
"""This class enables using any model via LiteLLM. LiteLLM allows you to acess OpenAPI,
139+
"""This class enables using any model via LiteLLM. LiteLLM allows you to access OpenAPI,
140140
Anthropic, Gemini, Mistral, and many other models.
141141
See supported models here: [litellm models](https://docs.litellm.ai/docs/providers).
142142
"""

src/agents/extensions/models/litellm_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from ...models.interface import Model, ModelProvider
33
from .litellm_model import LitellmModel
44

5-
# This is kept for backward compatiblity but using get_default_model() method is recommended.
5+
# This is kept for backward compatibility but using get_default_model() method is recommended.
66
DEFAULT_MODEL: str = "gpt-4.1"
77

88

src/agents/models/chatcmpl_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def message_to_output_items(
123123
"""
124124
items: list[TResponseOutputItem] = []
125125

126-
# Check if message is agents.extentions.models.litellm_model.InternalChatCompletionMessage
126+
# Check if message is agents.extensions.models.litellm_model.InternalChatCompletionMessage
127127
# We can't actually import it here because litellm is an optional dependency
128128
# So we use hasattr to check for reasoning_content and thinking_blocks
129129
if hasattr(message, "reasoning_content") and message.reasoning_content:

src/agents/models/openai_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .openai_chatcompletions import OpenAIChatCompletionsModel
1414
from .openai_responses import OpenAIResponsesModel, OpenAIResponsesWSModel
1515

16-
# This is kept for backward compatiblity but using get_default_model() method is recommended.
16+
# This is kept for backward compatibility but using get_default_model() method is recommended.
1717
DEFAULT_MODEL: str = "gpt-4o"
1818

1919

tests/test_apply_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_apply_diff_create_mode_requires_plus_prefix() -> None:
2323
apply_diff("", diff, mode="create")
2424

2525

26-
def test_apply_diff_create_mode_perserves_trailing_newline() -> None:
26+
def test_apply_diff_create_mode_preserves_trailing_newline() -> None:
2727
diff = "\n".join(["+hello", "+world", "+"])
2828
assert apply_diff("", diff, mode="create") == "hello\nworld\n"
2929

0 commit comments

Comments
 (0)