Skip to content

fix: remove local API key pooling and retry HTTP 429 - #14

Merged
two-tiger merged 2 commits into
AI45Lab:mainfrom
k4ngzy:fix/api-pool-and-429-retry
Nov 5, 2026
Merged

two-tiger merged 2 commits into
AI45Lab:mainfrom
k4ngzy:fix/api-pool-and-429-retry

Conversation

@k4ngzy

@k4ngzy k4ngzy commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Use configured API credentials directly and remove shared key state and selection options. Retry HTTP 429 with the existing bounded retry and Retry-After handling.

Validation: ruff passed; pytest 621 passed, 1 skipped. A real rjob received HTTP 200 through the OSWorld2.1 entry and SlowModelClient; connectivity only, with the response truncated by the token limit.

kangzeyu added 2 commits November 5, 2026 20:08
Use configured API credentials directly and remove shared key state and selection options. Retry HTTP 429 with the existing bounded retry and Retry-After handling.

Validation: ruff passed; pytest 621 passed, 1 skipped. A real rjob received HTTP 200 through the OSWorld2.1 entry and SlowModelClient; connectivity only, with the response truncated by the token limit.
Classify MiniMax base_resp transient error codes independently of credential management, preserving bounded retries for direct and proxied responses. Keep unrelated provider errors and non-retryable HTTP statuses fatal.

Validation: ruff passed; pytest 657 passed, 1 skipped. A local HTTP fixture returned a MiniMax temporary error followed by a valid response, confirming retry recovery with the same request and credentials.

@two-tiger two-tiger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@two-tiger
two-tiger merged commit fc8a4fe into AI45Lab:main Nov 5, 2026
2 checks passed
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.

2 participants