Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-suffix: all-extras
cache-suffix: examples

- name: cache HuggingFace models
uses: actions/cache@v4
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ examples = ["pydantic-ai-examples=={{ version }}"]
a2a = ["fasta2a>=0.4.1"]
dbos = ["pydantic-ai-slim[dbos]=={{ version }}"]
prefect = ["pydantic-ai-slim[prefect]=={{ version }}"]
outlines-transformers = ["pydantic-ai-slim[outlines-transformers]=={{ version }}"]
outlines-llamacpp = ["pydantic-ai-slim[outlines-llamacpp]=={{ version }}"]
outlines-mlxlm = ["pydantic-ai-slim[outlines-mlxlm]=={{ version }}"]
outlines-sglang = ["pydantic-ai-slim[outlines-sglang]=={{ version }}"]
outlines-vllm-offline = ["pydantic-ai-slim[outlines-vllm-offline]=={{ version }}"]

[project.urls]
Homepage = "https://ai.pydantic.dev"
Expand Down Expand Up @@ -105,11 +110,6 @@ dev = [
"pip>=25.2",
"genai-prices>=0.0.28",
"mcp-run-python>=0.0.20",
# Needed to test Outlines (not included in the default installation)
"pydantic-ai-slim[outlines-transformers]",
"pydantic-ai-slim[outlines-llamacpp]",
"pydantic-ai-slim[outlines-mlxlm]",
"pydantic-ai-slim[outlines-sglang]",
]
lint = ["mypy>=1.11.2", "pyright>=1.1.390", "ruff>=0.6.9"]
docs = [
Expand Down
6 changes: 3 additions & 3 deletions tests/models/test_outlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
import vllm # type: ignore[reportMissingImports]

# We try to load the vllm model to ensure it is available
try: # pragma: no cover
try: # pragma: no lax cover
vllm.LLM('microsoft/Phi-3-mini-4k-instruct') # type: ignore
except RuntimeError as e: # pragma: no cover
if 'Found no NVIDIA driver' in str(e):
except RuntimeError as e: # pragma: lax no cover
if 'Found no NVIDIA driver' in str(e) or 'Device string must not be empty' in str(e):
# Treat as import failure
raise ImportError('CUDA/NVIDIA driver not available') from e
raise
Expand Down
27 changes: 21 additions & 6 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.