v1.0.25
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
class OpenAIChat {
|
||||
int id = 0;
|
||||
late String messages; // JSON of ChatMessage
|
||||
String modelName = "gpt-3.5-turbo";
|
||||
double temperature = 0.1;
|
||||
late String modelName;
|
||||
late double temperature;
|
||||
|
||||
OpenAIChat(this.messages, {String? modelName, double? temperature});
|
||||
OpenAIChat(this.messages, {String? modelName, double? temperature}) {
|
||||
this.modelName = modelName ?? "gpt-3.5-turbo";
|
||||
this.temperature = temperature ?? 0.1;
|
||||
}
|
||||
|
||||
OpenAIChat.fromJson(Map json) {
|
||||
id = json["id"];
|
||||
|
||||
Reference in New Issue
Block a user