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 36970c8 commit 29c881e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/messageCreateOllama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ function getModelByPrefix(prefix: string): string {

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

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

0 comments on commit 29c881e

Please sign in to comment.