Skip to main content

Module default

Module default 

Source
Expand description

Default generic provider implementation.

This provider is used as a fallback when the provider name is not found in the registry. It makes minimal assumptions about the provider, assuming most providers follow the OpenAI-compatible Chat API format.

Unlike named providers (GLM, Kimi, etc.), DefaultProvider is not registered in the static factory registry. Instead, [create_provider] constructs it directly when no matching registry entry is found. This keeps the fallback mechanism separate from the user-facing provider namespace.

Structsยง

DefaultProvider
Default provider that makes minimal assumptions.