Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Izocel committed Mar 4, 2024
1 parent 2108bf9 commit 36970c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/messageCreateOllama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,5 @@ function getModelByPrefix(prefix: string): string {

//TODO: Use a shortname associative listing (json)

return prefix.split(':')[1] ?? "llama2";
return prefix.split(':')[1]?.split(" ")[0] ?? "llama2";
}

0 comments on commit 36970c8

Please sign in to comment.