7 Commits

Author SHA1 Message Date
Ivan Gabriele
7a5e0679c1 ci(release): v0.9.0 2024-04-13 14:06:55 +02:00
Ivan Gabriele
99d9d099e2 docs(changelog): update 2024-04-13 13:56:20 +02:00
Ivan Gabriele
91fb775132 ci(makefile): fix conventional-changelog-cli suffix 2024-04-13 13:55:22 +02:00
Ivan Gabriele
7474aa6730 ci(makefile): prefix conventional-changelog with npx 2024-04-13 13:54:05 +02:00
Ivan Gabriele
6a99eca49c fix!: fix typo in OpenMixtral8x7b model name (#8)
BREAKING CHANGE: `Model.OpenMistral8x7b` has been renamed to `Model.OpenMixtral8x7b`.
2024-04-13 13:49:54 +02:00
renovate[bot]
fccd59c0cc fix(deps): update rust crate reqwest to 0.12.0 (#6)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-13 13:38:35 +02:00
Ivan Gabriele
a463cb3106 docs(github): update issue templates 2024-03-10 04:36:08 +01:00
6 changed files with 34 additions and 28 deletions

View File

@@ -1,17 +1,16 @@
--- ---
name: Bug report name: Bug report
about: Create a report to help us improve about: Create a report to help us improve
title: '' title: ""
labels: '' labels: "bug"
assignees: '' assignees: ""
--- ---
**Describe the bug** **Describe the bug**
A clear and concise description of what the bug is. ...
**To Reproduce** **Reproduction**
Steps to reproduce the behavior: Steps to reproduce the behavior:
@@ -20,7 +19,7 @@ Steps to reproduce the behavior:
**Expected behavior** **Expected behavior**
A clear and concise description of what you expected to happen. ...
**Screenshots** **Screenshots**
@@ -32,4 +31,4 @@ If applicable, what version did you use?
**Environment** **Environment**
Add useful information about your configuration and environment here. If applicable, add relevant information about your config and environment here.

View File

@@ -1,24 +1,19 @@
--- ---
name: Feature request name: Feature request
about: Suggest an idea for this project about: Suggest a new idea for the project.
title: '' title: ""
labels: '' labels: "enhancement"
assignees: '' assignees: ""
--- ---
**Is your feature request related to a problem? Please describe.** **Is your feature request related to some problems?**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - _Ex. I'm always frustrated when..._
**Describe the solution you'd like** **What are the solutions you'd like?**
A clear and concise description of what you want to happen. - _Ex. A new option to..._
**Describe alternatives you've considered** **Anything else?**
A clear and concise description of any alternative solutions or features you've considered. - ...
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@@ -1,3 +1,15 @@
## [0.9.0](https://github.com/ivangabriele/mistralai-client-rs/compare/v0.8.0...v) (2024-04-13)
### ⚠ BREAKING CHANGES
* `Model.OpenMistral8x7b` has been renamed to `Model.OpenMixtral8x7b`.
### Bug Fixes
* **deps:** update rust crate reqwest to 0.12.0 ([#6](https://github.com/ivangabriele/mistralai-client-rs/issues/6)) ([fccd59c](https://github.com/ivangabriele/mistralai-client-rs/commit/fccd59c0cc783edddec1b404363faabb009eecd6))
* fix typo in OpenMixtral8x7b model name ([#8](https://github.com/ivangabriele/mistralai-client-rs/issues/8)) ([6a99eca](https://github.com/ivangabriele/mistralai-client-rs/commit/6a99eca49c0cc8e3764a56f6dfd7762ec44a4c3b))
## [0.8.0](https://github.com/ivangabriele/mistralai-client-rs/compare/v0.7.0...v) (2024-03-09) ## [0.8.0](https://github.com/ivangabriele/mistralai-client-rs/compare/v0.7.0...v) (2024-03-09)

View File

@@ -2,7 +2,7 @@
name = "mistralai-client" name = "mistralai-client"
description = "Mistral AI API client library for Rust (unofficial)." description = "Mistral AI API client library for Rust (unofficial)."
license = "Apache-2.0" license = "Apache-2.0"
version = "0.8.0" version = "0.9.0"
edition = "2021" edition = "2021"
rust-version = "1.76.0" rust-version = "1.76.0"
@@ -20,7 +20,7 @@ async-trait = "0.1.77"
env_logger = "0.11.3" env_logger = "0.11.3"
futures = "0.3.30" futures = "0.3.30"
log = "0.4.21" log = "0.4.21"
reqwest = { version = "0.11.24", features = ["json", "blocking", "stream"] } reqwest = { version = "0.12.0", features = ["json", "blocking", "stream"] }
serde = { version = "1.0.197", features = ["derive"] } serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114" serde_json = "1.0.114"
strum = "0.26.1" strum = "0.26.1"

View File

@@ -14,7 +14,7 @@ define source_env_if_not_ci
endef endef
define RELEASE_TEMPLATE define RELEASE_TEMPLATE
conventional-changelog -p conventionalcommits -i ./CHANGELOG.md -s npx conventional-changelog-cli -p conventionalcommits -i ./CHANGELOG.md -s
git add . git add .
git commit -m "docs(changelog): update" git commit -m "docs(changelog): update"
git push origin HEAD git push origin HEAD

View File

@@ -6,8 +6,8 @@ pub const API_URL_BASE: &str = "https://api.mistral.ai/v1";
pub enum Model { pub enum Model {
#[serde(rename = "open-mistral-7b")] #[serde(rename = "open-mistral-7b")]
OpenMistral7b, OpenMistral7b,
#[serde(rename = "open-mistral-8x7b")] #[serde(rename = "open-mixtral-8x7b")]
OpenMistral8x7b, OpenMixtral8x7b,
#[serde(rename = "mistral-small-latest")] #[serde(rename = "mistral-small-latest")]
MistralSmallLatest, MistralSmallLatest,
#[serde(rename = "mistral-medium-latest")] #[serde(rename = "mistral-medium-latest")]