Memo::Providers::Registry
Provider factory
Creates provider instances from format names. Formats represent API protocols (e.g., "openai" format works with OpenAI, Azure OpenAI, and any OpenAI-compatible API).
Usage
provider = Memo::Providers::Registry.create(
format: "openai",
api_key: "sk-...",
model: "text-embedding-3-small",
base_url: "https://custom.api.com/v1" # optional
)