Skip to content

fix: clear errors and retries in the model gateway - #2

Merged
Param-Harrison merged 1 commit into
mainfrom
fix/gateway
Dec 3, 2026
Merged

Param-Harrison merged 1 commit into
mainfrom
fix/gateway

Conversation

@Param-Harrison

Copy link
Copy Markdown
Contributor
  • llm.py retries by itself. LiteLLM's num_retries needs tenacity, and without it a wrong key or a rate limit ended in "tenacity import failed".
  • llm.py keeps a tool's strict flag for Claude, and fails loudly if a LiteLLM upgrade moves the function it patches.
  • scripts/check.py refuses a pydantic field named thinking.

🤖 Generated with Claude Code

The gateway retries by itself, keeps a tool's strict flag for Claude, and the check refuses
a model field named thinking. Copied from the shared workshop kit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Param-Harrison
Param-Harrison merged commit 059a1d1 into main Dec 3, 2026
1 check passed
@Param-Harrison
Param-Harrison deleted the fix/gateway branch December 3, 2026 08:47
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.

1 participant