Skip to content

Commit 2dfeaa0

Browse files
author
Akos Bontovics
committed
fix(temporal): Add httpcore to passthrough modules
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 #3117
1 parent 78fb707 commit 2dfeaa0

File tree

1 file changed

+1
-0
lines changed
  • pydantic_ai_slim/pydantic_ai/durable_exec/temporal

1 file changed

+1
-0
lines changed

pydantic_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def configure_worker(self, config: WorkerConfig) -> WorkerConfig:
6262
'logfire',
6363
'rich',
6464
'httpx',
65+
'httpcore',
6566
# Imported inside `logfire._internal.json_encoder` when running `logfire.info` inside an activity with attributes to serialize
6667
'attrs',
6768
# Imported inside `logfire._internal.json_schema` when running `logfire.info` inside an activity with attributes to serialize

0 commit comments

Comments
 (0)