Aludel.Interfaces.LLM.Config (aludel v0.2.0)

Copy Markdown View Source

Configuration utilities for LLM provider implementations.

Summary

Functions

Extracts and validates API key from provider config.

Returns the configured HTTP adapter for making LLM API calls.

Functions

get_api_key(arg1)

@spec get_api_key(map()) :: {:ok, String.t()} | {:error, :missing_api_key}

Extracts and validates API key from provider config.

Returns {:ok, key} if valid, {:error, :missing_api_key} otherwise.

http_adapter()

@spec http_adapter() :: module()

Returns the configured HTTP adapter for making LLM API calls.