Skip to content

Commit

Permalink
Update ollama_model.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
danemadsen authored May 6, 2024
1 parent 2479541 commit e99786d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/classes/ollama_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class OllamaModel extends LargeLanguageModel {
super.listener,
super.name,
super.uri,
super.token,
super.useDefault,
super.penalizeNewline,
super.seed,
Expand Down Expand Up @@ -198,6 +199,7 @@ class OllamaModel extends LargeLanguageModel {
} else {
chat = ChatOllama(
baseUrl: '$uri/api',
headers: { 'Authorization': 'Bearer: $token' },
defaultOptions: ChatOllamaOptions(
model: name,
numKeep: nKeep,
Expand Down

0 comments on commit e99786d

Please sign in to comment.