AiGenerator class abstract

Implementers

Constructors

AiGenerator.createBailianWith({required String model, required String apiKey})
factory
AiGenerator.createBailianWith_qwen_plus({required String apiKey})
factory
AiGenerator.createBigModelWith({required String apiKey, required String model})
factory
AiGenerator.createBigModelWith_glm_4_5_air({required String apiKey})
factory
AiGenerator.createBigModelWith_glm_4_5_flash({required String apiKey})
factory
AiGenerator.createOpenAIWith({required String baseUrl, required String apiKey, required String model})
factory
AiGenerator.createQianfanWith({required String apiKey, required String model})
factory
AiGenerator.createQianfanWith_ernie_3_5_8k({required String apiKey})
factory

Properties

apiKey String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
model String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
generate(String prompt, {String systemPrompt = "", int maxTokens = 1024, bool withThinking = true, bool jsonResponse = false}) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

isDebug bool
getter/setter pair