Skip to content

Commit 8078741

Browse files
committed
fix
1 parent 8302358 commit 8078741

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_openai_chatcompletions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from openai.types.chat.chat_completion import ChatCompletion, Choice
1010
from openai.types.chat.chat_completion_chunk import ChatCompletionChunk
1111
from openai.types.chat.chat_completion_message import ChatCompletionMessage
12-
from openai.types.chat.chat_completion_message_tool_call import (
12+
from openai.types.chat.chat_completion_message_tool_call import ( # type: ignore[attr-defined]
1313
ChatCompletionMessageFunctionToolCall,
1414
Function,
1515
)

tests/test_openai_chatcompletions_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ def test_tool_call_conversion():
341341

342342
tool_call = tool_calls[0]
343343
assert tool_call["id"] == function_call["call_id"]
344-
assert tool_call["function"]["name"] == function_call["name"]
345-
assert tool_call["function"]["arguments"] == function_call["arguments"]
344+
assert tool_call["function"]["name"] == function_call["name"] # type: ignore
345+
assert tool_call["function"]["arguments"] == function_call["arguments"] # type: ignore
346346

347347

348348
@pytest.mark.parametrize("role", ["user", "system", "developer"])

0 commit comments

Comments
 (0)