Skip to content

CustomGatewayProviderSettingsPatch

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  1916820656["v2_protocol.CustomGatewayProviderSettingsPatch"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 1916820656
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Omitted patch fields preserve their values. Explicit null clears a nullable field.

Source code in src/codexed/models/v2_protocol.py
class CustomGatewayProviderSettingsPatch(CodexBaseModel):
    """Omitted patch fields preserve their values. Explicit null clears a nullable field."""

    model_config = ConfigDict(
        extra="forbid",
    )
    base_url: str | None = None
    env_key: str | None = None
    name: str | None = None
    provider_id: str | None = None
    """
    Omit or pass null to allocate a new custom provider ID.
    """
    type: Literal["customGateway"] = "customGateway"

provider_id class-attribute instance-attribute

provider_id: str | None = None

Omit or pass null to allocate a new custom provider ID.

:fa-brands-github: Show source on GitHub