class LLM::AdapterFactory

Overview

Simple factory for creating adapters.

Note: This factory does not guess default URLs beyond provider tokens. Callers should pass proper values depending on their configuration.

Defined in:

llm/adapter.cr

Class Method Summary

Class Method Detail

def self.for(provider : String, model : String, api_key : String | Nil = nil) : Adapter #

[View source]