ChatGPTClient constructor

ChatGPTClient({
  1. required String apiKey,
  2. String model = "gpt-4",
  3. String systemPrompt = "You are a helpful assistant",
  4. double temperature = 0.5,
  5. int maxTokens = 1500,
})

Implementation

ChatGPTClient(
    {required this.apiKey,
    this.model = "gpt-4",
    this.systemPrompt = "You are a helpful assistant",
    this.temperature = 0.5,
    this.maxTokens = 1500});