Skip to content

Commit

Permalink
Register Mistral Codestral
Browse files Browse the repository at this point in the history
  • Loading branch information
svilupp committed May 29, 2024
1 parent a5f1419 commit 29d64d6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [0.28.0]

### Added
- Added Mistral coding-oriented [Codestral](https://mistral.ai/news/codestral/) to the model registry, aliased as `codestral` or `mistralc`. It's very fast, performant and much cheaper than similar models.

## [0.27.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PromptingTools"
uuid = "670122d1-24a8-4d70-bfce-740807c42192"
authors = ["J S @svilupp and contributors"]
version = "0.27.0"
version = "0.28.0"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
12 changes: 12 additions & 0 deletions src/user_preferences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ aliases = merge(
"mistrals" => "mistral-small-latest",
"mistralm" => "mistral-medium-latest",
"mistrall" => "mistral-large-latest",
"mistralc" => "codestral-latest",
"codestral" => "codestral-latest",
## Default to Sonnet as a the medium offering
"claude" => "claude-3-sonnet-20240229",
"claudeo" => "claude-3-opus-20240229",
Expand Down Expand Up @@ -552,6 +554,16 @@ registry = Dict{String, ModelSpec}(
8e-6,
2.4e-5,
"Mistral AI's hosted version of their best model available. Version 2402. Details unknown."),
"codestral-latest" => ModelSpec("codestral-latest",
MistralOpenAISchema(),
1e-6,
3e-6,
"Mistral AI's Code completion model, 22B parameters. Very quick and performant."),
"codestral-2405" => ModelSpec("codestral-2405",
MistralOpenAISchema(),
1e-6,
3e-6,
"Mistral AI's Code completion model, 22B parameters. Very quick and performant."),
"mistral-embed" => ModelSpec("mistral-embed",
MistralOpenAISchema(),
1e-7,
Expand Down

2 comments on commit 29d64d6

@svilupp
Copy link
Owner Author

@svilupp svilupp commented on 29d64d6 May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

Added

  • Added Mistral coding-oriented Codestral to the model registry, aliased as codestral or mistralc. It's very fast, performant and much cheaper than similar models.

Commits

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/107905

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.28.0 -m "<description of version>" 29d64d61db55856bd41bcb8cc4a73bc20a36c9e7
git push origin v0.28.0

Please sign in to comment.