AI.Provider (fnord v0.9.31)

View Source

Resolve 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

provider_key()

@type provider_key() :: binary()

Functions

current()

@spec current() :: provider_key()

module_for(atom)

@spec module_for(:endpoint | :model) :: module()