AiClient class

Calls only the selected provider's HTTPS API. No redirects or retries.

Constructors

AiClient({required AiProvider provider, required String apiKey, String? model, HttpClient? httpClient, Duration timeout = const Duration(seconds: 60)})

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