MCPcopy Index your code
hub / github.com/coder/coder / OpenAIRateLimitResponse

Function OpenAIRateLimitResponse

coderd/x/chatd/chattest/errors.go:70–72  ·  view source on GitHub ↗

OpenAIRateLimitResponse returns a 429 rate limit error.

()

Source from the content-addressed store, hash-verified

68
69// OpenAIRateLimitResponse returns a 429 rate limit error.
70func OpenAIRateLimitResponse() OpenAIResponse {
71 return OpenAIErrorResponse(http.StatusTooManyRequests, "rate_limit_exceeded", "Rate limit exceeded")
72}
73
74// OpenAIServerErrorResponse returns a 500 internal server error.
75func OpenAIServerErrorResponse() OpenAIResponse {

Calls 1

OpenAIErrorResponseFunction · 0.85

Tested by 1