mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: regenerate API docs for ChatErrorKind (#24989)
Follow-up to #24955 (`refactor: move chat error kinds into codersdk`), which moved `ChatErrorKind` into `codersdk` but did not refresh the generated apidoc artifacts. As a result, `make gen` was producing a dirty tree on `main`. This PR is the output of running `make gen -B` on a clean checkout of `main`. Only generated files are touched: - `coderd/apidoc/docs.go` - `coderd/apidoc/swagger.json` - `docs/reference/api/chats.md` - `docs/reference/api/schemas.md` The diff adds the `codersdk.ChatErrorKind` schema and replaces the previously-untyped `kind: string` fields on `codersdk.ChatError` and `codersdk.ChatRetryEvent` with references to the new enum.
This commit is contained in:
Generated
+33
-2
@@ -15679,7 +15679,11 @@ const docTemplate = `{
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind classifies the error for consistent client rendering.",
|
||||
"type": "string"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.ChatErrorKind"
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"description": "Message is the normalized, user-facing error message.",
|
||||
@@ -15699,6 +15703,29 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ChatErrorKind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"generic",
|
||||
"overloaded",
|
||||
"rate_limit",
|
||||
"timeout",
|
||||
"startup_timeout",
|
||||
"auth",
|
||||
"config",
|
||||
"usage_limit"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"ChatErrorKindGeneric",
|
||||
"ChatErrorKindOverloaded",
|
||||
"ChatErrorKindRateLimit",
|
||||
"ChatErrorKindTimeout",
|
||||
"ChatErrorKindStartupTimeout",
|
||||
"ChatErrorKindAuth",
|
||||
"ChatErrorKindConfig",
|
||||
"ChatErrorKindUsageLimit"
|
||||
]
|
||||
},
|
||||
"codersdk.ChatFileMetadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -16266,7 +16293,11 @@ const docTemplate = `{
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind classifies the retry reason for consistent client rendering.",
|
||||
"type": "string"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.ChatErrorKind"
|
||||
}
|
||||
]
|
||||
},
|
||||
"provider": {
|
||||
"description": "Provider identifies the upstream model provider when known.",
|
||||
|
||||
Generated
+33
-2
@@ -14108,7 +14108,11 @@
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind classifies the error for consistent client rendering.",
|
||||
"type": "string"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.ChatErrorKind"
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"description": "Message is the normalized, user-facing error message.",
|
||||
@@ -14128,6 +14132,29 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.ChatErrorKind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"generic",
|
||||
"overloaded",
|
||||
"rate_limit",
|
||||
"timeout",
|
||||
"startup_timeout",
|
||||
"auth",
|
||||
"config",
|
||||
"usage_limit"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"ChatErrorKindGeneric",
|
||||
"ChatErrorKindOverloaded",
|
||||
"ChatErrorKindRateLimit",
|
||||
"ChatErrorKindTimeout",
|
||||
"ChatErrorKindStartupTimeout",
|
||||
"ChatErrorKindAuth",
|
||||
"ChatErrorKindConfig",
|
||||
"ChatErrorKindUsageLimit"
|
||||
]
|
||||
},
|
||||
"codersdk.ChatFileMetadata": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -14678,7 +14705,11 @@
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind classifies the retry reason for consistent client rendering.",
|
||||
"type": "string"
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/codersdk.ChatErrorKind"
|
||||
}
|
||||
]
|
||||
},
|
||||
"provider": {
|
||||
"description": "Provider identifies the upstream model provider when known.",
|
||||
|
||||
Reference in New Issue
Block a user