completeWithMeta method
Single-shot, returning the reply with why the model stopped and the
token counts the provider reported. Use it to tell a reply cut off at
maxTokens (AiFinishReason.maxTokens) from a complete one.
Implementation
Future<AiCompletion> completeWithMeta({
required String apiKey,
required String model,
required String system,
required String user,
double temperature = 0.3,
int maxTokens = 2048,
}) =>
chatWithMeta(
apiKey: apiKey,
model: model,
request: ChatRequest.single(
system: system,
user: user,
temperature: temperature,
maxTokens: maxTokens,
),
);