{"id":27644935,"url":"https://github.com/trflorian/pydantic-ai-retry-fallback","last_synced_at":"2026-05-02T03:07:25.351Z","repository":{"id":289541208,"uuid":"971606529","full_name":"trflorian/pydantic-ai-retry-fallback","owner":"trflorian","description":"Retry/Fallback with Pydantic-AI","archived":false,"fork":false,"pushed_at":"2025-04-23T19:47:27.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T00:59:11.755Z","etag":null,"topics":["antrophic","api","claude","gemini","google","gpt","llm","openai","pydantic-ai","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trflorian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-23T19:23:55.000Z","updated_at":"2025-04-23T19:47:32.000Z","dependencies_parsed_at":"2025-04-23T20:43:30.314Z","dependency_job_id":null,"html_url":"https://github.com/trflorian/pydantic-ai-retry-fallback","commit_stats":null,"previous_names":["trflorian/pydantic-ai-retry-fallback"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trflorian/pydantic-ai-retry-fallback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trflorian%2Fpydantic-ai-retry-fallback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trflorian%2Fpydantic-ai-retry-fallback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trflorian%2Fpydantic-ai-retry-fallback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trflorian%2Fpydantic-ai-retry-fallback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trflorian","download_url":"https://codeload.github.com/trflorian/pydantic-ai-retry-fallback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trflorian%2Fpydantic-ai-retry-fallback/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32521119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["antrophic","api","claude","gemini","google","gpt","llm","openai","pydantic-ai","python"],"created_at":"2025-04-24T00:59:10.625Z","updated_at":"2026-05-02T03:07:25.325Z","avatar_url":"https://github.com/trflorian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retry / Fallback with Pydantic-AI\n\nThis project highlights a simple way to increase robustness when working with external APIs, such as LLM APIs from OpenAi, Google or Anthropic.\n\n## Concepts\n\n![schema](https://github.com/user-attachments/assets/44821b3a-7979-4b83-9ebe-b9ea37bd089d)\n\n### Retry\n\nCall the same api multiple times if a temporary problem prevents successfull responses.\n\n### Fallback\n\nCalling different models in case a provider is not reachable.\n\n## Quickstart\n\n### Prerequisites\n\n- [uv](https://docs.astral.sh/uv/) package manager\n- API keys for desired provider, see `.env.example` for reference\n\n### Run Project\n\n```\nuv run main.py\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrflorian%2Fpydantic-ai-retry-fallback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrflorian%2Fpydantic-ai-retry-fallback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrflorian%2Fpydantic-ai-retry-fallback/lists"}