Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7263ff

Browse files
authored
test: close global http client (pydantic#1450)
1 parent925a377 commitf7263ff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎docs/models/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ from one model to the next if the current model returns a 4xx or 5xx status code
7171
In the following example, the agent first makes a request to the OpenAI model (which fails due to an invalid API key),
7272
and then falls back to the Anthropic model.
7373

74-
```python {title="fallback_model.py"}
74+
<!-- TODO(Marcelo): Do not skip this test. For some reason it becomes a flaky test if we don't skip it.-->
75+
```python {title="fallback_model.py" test="skip"}
7576
from pydantic_aiimport Agent
7677
from pydantic_ai.models.anthropicimport AnthropicModel
7778
from pydantic_ai.models.fallbackimport FallbackModel

‎tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ async def close_cached_httpx_client() -> AsyncIterator[None]:
211211
'mistral',
212212
'cohere',
213213
'deepseek',
214+
None,
214215
]:
215216
awaitcached_async_http_client(provider=provider).aclose()
216217

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp