Skip to content

Commit 92faf8c

Browse files
committed
Fixed Format Issue
1 parent b40342b commit 92faf8c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/models/test_openai.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,13 +3032,18 @@ def test_deprecated_openai_model(openai_api_key: str):
30323032

30333033
@pytest.mark.vcr()
30343034
async def test_openai_video_url_raises_not_implemented(openai_api_key: str, allow_model_requests: None) -> None:
3035-
30363035
model = OpenAIChatModel('gpt-4o', provider=OpenAIProvider(api_key=openai_api_key))
30373036
with pytest.raises(NotImplementedError):
3038-
await model.request([ModelRequest(parts=[UserPromptPart(content=[VideoUrl(url='https://example.com/file.mp4')])])], {}, ModelRequestParameters())
3037+
await model.request(
3038+
[ModelRequest(parts=[UserPromptPart(content=[VideoUrl(url='https://example.com/file.mp4')])])],
3039+
{},
3040+
ModelRequestParameters(),
3041+
)
30393042

30403043

3041-
async def test_openai_map_single_item_unknown_returns_empty_branch(openai_api_key: str, allow_model_requests: None) -> None:
3044+
async def test_openai_map_single_item_unknown_returns_empty_branch(
3045+
openai_api_key: str, allow_model_requests: None
3046+
) -> None:
30423047
# Use BinaryContent with unsupported media_type to exercise empty mapping via public API
30433048

30443049
captured: list[list[dict[str, Any]]] = []

0 commit comments

Comments
 (0)