Skip to content

Add retry for 429 #21465

Description

@significantfrank

Description

opencode should retry rather than abort session for below error:

AI_TypeValidationError: Type validation failed: Value: {"text":"[DONE]","error":{"error_msg":"Too many requests, the rate limit is 8000000 tokens per minute.","error_code":"InferHub.ModelArts.81101.429"},"error_code":"InferHub.ModelArts.81101.429","error_msg":"Too many requests, the rate limit is 8000000 tokens per minute."}.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions