ApiClient class

Represents an API client for making requests to the OpenAI API.

Constructors

ApiClient({required String apiKey, required String endpoint})
Creates a new ApiClient instance.

Properties

apiKey String
API key.
final
endpoint String
Endpoint
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String path, {required Map<String, dynamic> data}) Future<Response>
Posts a request to the OpenAI API.
toString() String
A string representation of this object.
inherited

Operators

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