chatWithMeta abstract method

Future<AiCompletion> chatWithMeta({
  1. required String apiKey,
  2. required String model,
  3. required ChatRequest request,
})

Multi-turn, returning the final turn's reply with why the model stopped and the token counts the provider reported. Every provider call goes through here; chat, complete and completeWithMeta are built on it.

Implementation

Future<AiCompletion> chatWithMeta({
  required String apiKey,
  required String model,
  required ChatRequest request,
});