Skip to content

SetProviderRequest

Base classes

Name Children Inherits
Request
aclientp.schema.base
Base request model.

⋔ Inheritance diagram

graph TD
  95970858282416["providers.SetProviderRequest"]
  95970858197488["base.Request"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970858197488 --> 95970858282416
  95970862258240 --> 95970858197488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: Request

Configure a provider's routing.

Source code in src/aclientp/schema/providers.py
class SetProviderRequest(Request):
    """Configure a provider's routing."""

    provider_id: ProviderId
    """Provider ID to configure."""

    api_type: LlmProtocol
    """Protocol type for this provider."""

    base_url: str
    """Base URL for requests sent through this provider."""

    headers: dict[str, str] = Field(default_factory=dict)
    """Full headers map for this provider (may include authorization headers)."""

api_type instance-attribute

api_type: LlmProtocol

Protocol type for this provider.

base_url instance-attribute

base_url: str

Base URL for requests sent through this provider.

headers class-attribute instance-attribute

headers: dict[str, str] = Field(default_factory=dict)

Full headers map for this provider (may include authorization headers).

provider_id instance-attribute

provider_id: ProviderId

Provider ID to configure.

:fa-brands-github: Show source on GitHub