Skip to content

Commit 52a0a15

Browse files
authored
Merge branch 'main' into vercel-ai-chat
2 parents e770176 + 0739a4a commit 52a0a15

File tree

5 files changed

+33
-17
lines changed

5 files changed

+33
-17
lines changed

.github/workflows/after-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
commit: ${{ github.event.workflow_run.head_sha }}
6666
allow_forks: true
6767
workflow_conclusion: completed
68+
if_no_artifact_found: warn
6869

6970
- uses: cloudflare/wrangler-action@v3
7071
id: deploy

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ jobs:
142142
test:
143143
name: test on ${{ matrix.python-version }} (${{ matrix.install.name }})
144144
runs-on: ubuntu-latest
145-
timeout-minutes: 15
145+
timeout-minutes: 20
146146
strategy:
147147
fail-fast: false
148148
matrix:
@@ -198,7 +198,7 @@ jobs:
198198
test-lowest-versions:
199199
name: test on ${{ matrix.python-version }} (lowest-versions)
200200
runs-on: ubuntu-latest
201-
timeout-minutes: 15
201+
timeout-minutes: 20
202202
strategy:
203203
fail-fast: false
204204
matrix:
@@ -263,7 +263,7 @@ jobs:
263263
with:
264264
python-version: ${{ matrix.python-version }}
265265
enable-cache: true
266-
cache-suffix: all-extras
266+
cache-suffix: examples
267267

268268
- name: cache HuggingFace models
269269
uses: actions/cache@v4

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ examples = ["pydantic-ai-examples=={{ version }}"]
5454
a2a = ["fasta2a>=0.4.1"]
5555
dbos = ["pydantic-ai-slim[dbos]=={{ version }}"]
5656
prefect = ["pydantic-ai-slim[prefect]=={{ version }}"]
57+
outlines-transformers = ["pydantic-ai-slim[outlines-transformers]=={{ version }}"]
58+
outlines-llamacpp = ["pydantic-ai-slim[outlines-llamacpp]=={{ version }}"]
59+
outlines-mlxlm = ["pydantic-ai-slim[outlines-mlxlm]=={{ version }}"]
60+
outlines-sglang = ["pydantic-ai-slim[outlines-sglang]=={{ version }}"]
61+
outlines-vllm-offline = ["pydantic-ai-slim[outlines-vllm-offline]=={{ version }}"]
5762

5863
[project.urls]
5964
Homepage = "https://ai.pydantic.dev"
@@ -105,11 +110,6 @@ dev = [
105110
"pip>=25.2",
106111
"genai-prices>=0.0.28",
107112
"mcp-run-python>=0.0.20",
108-
# Needed to test Outlines (not included in the default installation)
109-
"pydantic-ai-slim[outlines-transformers]",
110-
"pydantic-ai-slim[outlines-llamacpp]",
111-
"pydantic-ai-slim[outlines-mlxlm]",
112-
"pydantic-ai-slim[outlines-sglang]",
113113
]
114114
lint = ["mypy>=1.11.2", "pyright>=1.1.390", "ruff>=0.6.9"]
115115
docs = [

tests/models/test_outlines.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@
5656
import vllm # type: ignore[reportMissingImports]
5757

5858
# We try to load the vllm model to ensure it is available
59-
try: # pragma: no cover
59+
try: # pragma: no lax cover
6060
vllm.LLM('microsoft/Phi-3-mini-4k-instruct') # type: ignore
61-
except RuntimeError as e: # pragma: no cover
62-
if 'Found no NVIDIA driver' in str(e):
61+
except RuntimeError as e: # pragma: lax no cover
62+
if 'Found no NVIDIA driver' in str(e) or 'Device string must not be empty' in str(e):
6363
# Treat as import failure
6464
raise ImportError('CUDA/NVIDIA driver not available') from e
6565
raise

uv.lock

Lines changed: 21 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)