AiClient class

Uses fixed cloud APIs or a loopback chat API. No redirects or retries.

Constructors

AiClient({required AiProvider provider, String apiKey = '', String? model, String? baseUrl, HttpClient? httpClient, Duration? timeout})

Properties

hashCode → int
The hash code for this object.
no setterinherited
model → String
final
provider → AiProvider
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration
final

Methods

close() → void
complete(String instructions, Map<String, dynamic> input) → Future<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited