Skip to content

Commit

Permalink
Added ModelMistral and made it default for OLLAMA (#90)
Browse files Browse the repository at this point in the history
Add the Mistral model to the Ollama backend and make it the default,
as it outperforms codellama.
  • Loading branch information
junaid18183 committed Mar 20, 2024
1 parent bfc9a45 commit 4948563
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libaiac/ollama/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ var (
// ModelCodeBooga represents the codebooga model
ModelCodeBooga = types.Model{"codebooga", 0, types.ModelTypeChat}

// ModelMistral represents the mistral model
ModelMistral = types.Model{"mistral", 0, types.ModelTypeChat}

// SupportedModels is a list of all language models supported by this
// backend implementation.
SupportedModels = []types.Model{
Expand All @@ -48,6 +51,7 @@ var (
ModelStableCode,
ModelMagicoder,
ModelCodeBooga,
ModelMistral,
}
)

Expand All @@ -59,5 +63,5 @@ func (client *Client) ListModels() []types.Model {

// DefaultModel returns the default model used by this backend.
func (client *Client) DefaultModel() types.Model {
return ModelCodeLlama
return ModelMistral
}

0 comments on commit 4948563

Please sign in to comment.