Skip to content

fix(models): retry async LLM generation - #277

Open
Ftgn-dpA wants to merge 1 commit into
ANative-Lab:mainfrom
Ftgn-dpA:fix/async-llm-retries
Open

fix(models): retry async LLM generation#277
Ftgn-dpA wants to merge 1 commit into
ANative-Lab:mainfrom
Ftgn-dpA:fix/async-llm-retries

Conversation

@Ftgn-dpA

@Ftgn-dpA Ftgn-dpA commented Sep 2, 2026

Copy link
Copy Markdown

Summary

  • apply the existing five-attempt exponential retry policy to async generation in OpenAILLM, LiteLLM, and OpenRouterLLM
  • keep async behavior consistent with the corresponding synchronous generation methods
  • add offline regression coverage for a transient first-call failure across all three clients

Testing

  • uv run --extra dev --extra tools pytest tests/src/models/test_async_retry.py tests/src/models/test_openai_model.py tests/src/models/test_openrouter_model.py -q
  • uv run --extra dev ruff check tests/src/models/test_async_retry.py
  • uv run --extra dev ruff format --check tests/src/models/test_async_retry.py
  • git diff --check

Fixes #275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] single_generate_async has no retry, unlike single_generate, in OpenAILLM/LiteLLMModel/OpenRouterLLM

1 participant