Skip to content

LLM Request Timeout #1438

Open
Open
@rogerwelo

Description

@rogerwelo

Question

Hi,

Every now and then I encounter the issue that the LLM request gets stuck and thus the agent gets stuck without throwing an error.
Is there a way to set a timeout for LLM requests? And even better, the option to retry if one of them times out?

Additional Context

Pydantic AI 0.0.43
Python 3.11.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions