SparkClient class

Inheritance

Constructors

SparkClient(String apiKey, {String baseUrl = 'https://api.cantrip.art'})

Properties

apiKey → String
finalinherited
baseUrl → String
finalinherited
h → Map<String, String>?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
mana → Future<int>
no setteroverride
modelLibrary → Future<ModelLibrary>
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spark → Future<Spark>
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scribe({required Model model, required ModelProvider provider, required String prompt, int? maxTokens, double? temperature}) → Future<String>
inherited
scribeChat({required Model model, required ModelProvider provider, required ChatRequest prompt, int? maxTokens, double? temperature}) → Future<String>
inherited
scribeChatStream({required Model model, required ModelProvider provider, required ChatRequest prompt, int? maxTokens, double? temperature, bool deltaStream = false}) → Stream<String>
inherited
scribeStream({required Model model, required ModelProvider provider, required String prompt, int? maxTokens, double? temperature, bool deltaStream = false}) → Stream<String>
inherited
toString() → String
A string representation of this object.
inherited
u(String path, [Map<String, String>? params]) → Uri
inherited

Operators

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