provider_custom: Custom Provider Factory

provider_customR Documentation

Custom Provider Factory

Description

A dynamic factory for creating custom provider instances. This allows users to instantiate a model provider at runtime by configuring the endpoint (base_url), credentials (api_key), network protocol/routing (api_format), and specific capabilities (use_max_completion_tokens), without writing a new Provider class.


aisdk documentation built on May 29, 2026, 9:07 a.m.