mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-26 18:35:38 +08:00
* feat(provider): support Codex subscriptions with ChatGPT sign-in * style: format Codex live integration test * fix(provider): preserve Codex identity in temporary model tests * fix(web): portal provider selector without dialog overflow * fix(web): allow native scrolling in provider dropdown * fix(provider): surface safe Codex quota and upstream errors * fix(web): provide reliable Codex copy feedback in dialogs * feat(provider): confirm cascade deletion from edit dialog * fix(persistence): discard connections after failed commit * fix(web): polish provider loading and confirmation motion --------- Co-authored-by: dadachann <[email protected]>
11 lines
414 B
Python
11 lines
414 B
Python
"""Explicitly safe Codex failures; never construct messages from upstream bodies."""
|
|
|
|
|
|
class CodexProviderError(ValueError):
|
|
"""A known provider failure safe to expose at the HTTP boundary."""
|
|
|
|
def __init__(self, message: str, status_code: int = 502, error_code: str = 'codex_upstream_failure'):
|
|
super().__init__(message)
|
|
self.status_code = status_code
|
|
self.error_code = error_code
|