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

Appearance settings

Conversation

slumbi
Copy link
Contributor

@slumbi slumbi commented Oct 12, 2025

This pull request addresses the issue where Mistral models fail when used within a Temporal worker due to the httpcore module not being accessible.

Changes include:

Updating PydanticAIPlugin in pydantic_ai_slim/pydantic_ai/durable_exec/temporal/init.py to include httpcore in the with_passthrough_modules list.

This ensures that models with a dependency on httpcore can now be used seamlessly within Temporal workers.

Fixes #3117

This commit resolves an issue where using Mistral models within a
Temporal worker would fail due to `httpcore` not being available in the
sandboxed environment.

The `PydanticAIPlugin` has been updated to include `httpcore` in the
list of passthrough modules, ensuring its availability to the worker.

Fixes pydantic#3117
@DouweM DouweM changed the title fix(temporal): Add httpcore to passthrough modules Add anyio and httpcore to Temporal passthrough modules Oct 13, 2025
@DouweM DouweM merged commit dab177a into pydantic:main Oct 13, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mistral models do not work in Temporal workers using PydanticAIPlugin

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.