Skip to content

Investigate API errors #2583

@snopoke

Description

@snopoke

Review the LLM provider API errors that generate 400 response code and create tickets for the issues that are found which could be avoided through code changes or pipeline validation:

https://dimagi.sentry.io/issues/?environment=production&project=4505001320316928&query=BadRequestError&referrer=issue-list&statsPeriod=90d

E.g.:

Error code: 400 - {'error': {'message': "The following tools cannot be used with reasoning.effort 'minimal': file_search.", 'type': 'invalid_request_error', 'param': 'tools', 'code': None}}

Take-away: gpt-5 does not support 'file-search' when reasoning effort is 'minimal'.

We could add validation to handle this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions