From 24b6e6f983b008af9f6ab6be208f23b1f971b891 Mon Sep 17 00:00:00 2001 From: GareArc Date: Wed, 10 Jun 2026 02:08:47 -0700 Subject: [PATCH] chore(openapi): neutral wording for domain-code comments --- api/controllers/openapi/_errors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/controllers/openapi/_errors.py b/api/controllers/openapi/_errors.py index eb9ee57a2a..6aac3044ad 100644 --- a/api/controllers/openapi/_errors.py +++ b/api/controllers/openapi/_errors.py @@ -29,13 +29,13 @@ class OpenApiErrorCode(StrEnum): INTERNAL_ERROR = "internal_server_error" BAD_GATEWAY = "bad_gateway" UNKNOWN = "unknown" - # domain codes (carried by BaseHTTPException.error_code, values preserved - # from the existing wire contract) + # domain codes (must match the error_code attribute of the exception + # classes raised on the openapi surface) APP_UNAVAILABLE = "app_unavailable" CONVERSATION_COMPLETED = "conversation_completed" PROVIDER_NOT_INITIALIZE = "provider_not_initialize" PROVIDER_QUOTA_EXCEEDED = "provider_quota_exceeded" - MODEL_NOT_SUPPORTED = "model_currently_not_support" # legacy wire value — do not rename + MODEL_NOT_SUPPORTED = "model_currently_not_support" COMPLETION_REQUEST_ERROR = "completion_request_error" RATE_LIMIT_ERROR = "rate_limit_error" FILE_TOO_LARGE = "file_too_large"