OpenAIClient constructor
OpenAIClient({})
Implementation
OpenAIClient({this.apiKey, String baseUrl = "https://api.openai.com/v1/", this.headers, Client? httpClient}) {
this.baseUrl = Uri.parse(baseUrl);
if (httpClient == null) {
httpClient = Client.new();
}
this.httpClient = httpClient;
}