AI.Provider (fnord v0.9.34)
View SourceResolve the configured AI provider implementation modules.
Providers are selected globally via the user's settings file (~/.fnord/settings.json) under the top-level key "ai_provider". Defaults to "openai" when missing.
This module maps provider keys to concrete implementation modules for endpoint (HTTP endpoint path + error classifier) and model profiles.
Summary
Types
@type provider_key() :: binary()
Functions
@spec current() :: provider_key()
@spec module_for(:endpoint | :model) :: module()