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

Copy Markdown View Source

Configuration utilities for LLM provider implementations.

Summary

Functions

Extracts and validates the API key injected into request-scoped configuration.

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 the API key injected into request-scoped configuration.

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.