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

Function isChatUsageLimitExceededResponse

codersdk/chats.go:1848–1850  ·  view source on GitHub ↗
(resp ChatUsageLimitExceededResponse)

Source from the content-addressed store, hash-verified

1846}
1847
1848func isChatUsageLimitExceededResponse(resp ChatUsageLimitExceededResponse) bool {
1849 return resp.Message != "" && !resp.ResetsAt.IsZero()
1850}
1851
1852func readRawBodyAsError(res *http.Response, rawBody []byte) error {
1853 if mimeErr := ExpectJSONMime(res); mimeErr != nil {

Callers 1

Calls 1

IsZeroMethod · 0.45

Tested by

no test coverage detected