Skip to content

Standardize error messages across all LLM providers for consistency #113

Description

@himanshu231204

Description

Different LLM providers (OpenAI, Anthropic, Gemini, Groq, etc.) use different error message formats when things go wrong. This makes debugging harder for users who switch between providers. Error messages should be standardized.

What to Do

  1. Review error handling in each LLM provider:
    • \openagent_eval/providers/llm/openai.py\
    • \openagent_eval/providers/llm/anthropic.py\
    • \openagent_eval/providers/llm/gemini.py\
    • \openagent_eval/providers/llm/groq.py\
    • \openagent_eval/providers/llm/openrouter.py\
    • \openagent_eval/providers/llm/ollama.py\
  2. Create a consistent error format that includes: provider name, error type, and actionable message
  3. Update all providers to use the same format

Files Involved

  • \openagent_eval/providers/llm/*.py\ — all LLM providers
  • \openagent_eval/exceptions/\ — exception classes

Good First Issue ✅

A code quality task that teaches you the provider architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions