VanturaClient class
Client for interacting with the Vantura AI API.
Handles authentication, request building, and response parsing for chat completions.
Constructors
Properties
- apiKey → String
-
API key for authentication.
final
- baseUrl → String
-
Base URL of the API endpoint.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxCompletionTokens → int?
-
Default maximum completion tokens.
final
- model → String
-
Default model to use for requests.
final
- reasoningEffort → String?
-
Default reasoning effort.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stop → dynamic
-
Default stop sequences.
final
- stream → bool?
-
Default stream flag.
final
- temperature → double?
-
Default temperature for responses.
final
- topP → double?
-
Default top-p sampling parameter.
final
Methods
-
close(
) → void - Closes the shared HTTP client.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendChatRequest(
List< Map< messages, List<String, dynamic> >Map< ? tools, {double? temperature, int? maxCompletionTokens, double? topP, bool? stream, String? reasoningEffort, dynamic stop, CancellationToken? cancellationToken}) → Future<String, dynamic> >Map< String, dynamic> > - Sends a chat request to the API.
-
sendStreamingChatRequest(
List< Map< messages, List<String, dynamic> >Map< ? tools, {double? temperature, int? maxCompletionTokens, double? topP, String? reasoningEffort, dynamic stop, CancellationToken? cancellationToken}) → Stream<String, dynamic> >Map< String, dynamic> > - Sends a streaming chat request to the API.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited