Cri::APIClient
API clients implement wire-level API semantics. They are not providers: provider registrations supply identity/configuration and wrap one client.
Instance methods
complete(messages : Array(Message), tools : Array(ToolSpec), settings : ModelSettings) : AssistantResponse
Sourcecomplete_stream(messages : Array(Message), tools : Array(ToolSpec), settings : ModelSettings = ModelSettings.new, &on_text : String -> Nil) : AssistantResponse
Sourcelist_models
Sourcestream_with_channel(messages : Array(Message), tools : Array(ToolSpec), settings : ModelSettings, channel : Channel(String)) : AssistantResponse
Sourcesupports_streaming?
Sourcevalidate_credentials
Source