Skip to content

Commit

Permalink
Fix #513
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen committed May 26, 2024
1 parent c99bf5d commit 65729be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/classes/open_ai_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ class OpenAiModel extends LargeLanguageModel {

@override
void fromMap(Map<String, dynamic> json) {
if (json['uri'] == null) json['uri'] = defaultUrl;
super.fromMap(json);
uri = json['url'] ?? defaultUrl;
token = json['token'] ?? '';
nPredict = json['nPredict'] ?? 512;
topP = json['topP'] ?? 0.95;
penaltyPresent = json['penaltyPresent'] ?? 0.0;
penaltyFreq = json['penaltyFreq'] ?? 0.0;
notifyListeners();
}

Expand Down

0 comments on commit 65729be

Please sign in to comment.