0.14.0 (2024-08-27)
0.13.0 (2024-08-21)
- client:
v1::model_list::ModelListData
struct has been updated.
- client: remove the
Content-Type
from the headers of the reqwest builders. (#14) (9bfbf2e), closes #13 - client: update ModelListData struct following API changes (2114916)
0.12.0 (2024-07-24)
0.11.0 (2024-06-22)
- constants: add OpenMixtral8x22b, MistralTiny & CodestralLatest to Model enum (ecd0c30)
- chat: implement Clone trait for ChatParams & ResponseFormat (0df67b1)
0.10.0 (2024-06-07)
- chat: -
Chat::ChatParams.safe_prompt
&Chat::ChatRequest.safe_prompt
are nowbool
instead ofOption<bool>
. Default isfalse
.
Chat::ChatParams.temperature
&Chat::ChatRequest.temperature
are nowf32
instead ofOption<f32>
. Default is0.7
.Chat::ChatParams.top_p
&Chat::ChatRequest.top_p
are nowf32
instead ofOption<f32>
. Default is1.0
.
- chat: add response_format for JSON return values (85c3611)
- chat: add the 'system' and 'tool' message roles (#10) (2fc0642)
- chat: change safe_prompt, temperature & top_p to non-Option types (cf68a77)
- chat: skip serializing tool_calls if null, to avoid 422 error (da5fe54)
0.9.0 (2024-04-13)
Model.OpenMistral8x7b
has been renamed toModel.OpenMixtral8x7b
.
- deps: update rust crate reqwest to 0.12.0 (#6) (fccd59c)
- fix typo in OpenMixtral8x7b model name (#8) (6a99eca)
0.8.0 (2024-03-09)
- Too many to count in this version. Check the README examples.
- add function calling support to client.chat() & client.chat_async() (74bf8a9)
0.7.0 (2024-03-05)
-
- Rename
ClientError.ApiKeyError
toMissingApiKey
.
- Rename
- Rename
ClientError.ReadResponseTextError
toClientError.UnreadableResponseText
.
- fix failure when api key as param and not env (ef5d475)
0.6.0 (2024-03-04)
- You can't set the
stream
option forclient.chat*()
.
Either use client.chat_stream()
if you want to use streams
or use client.chat()
/ client.chat_async()
otherwise.
- add client.chat_stream() method (4a4219d)
0.5.0 (2024-03-04)
0.4.0 (2024-03-04)
Client::new()
now returns aResult
.APIError
is renamed toApiError
.
- add client.chat_async() method (1dd59f6)
- add missing api key error (1deab88)
- wrap Client::new() return in a Result (3387618)
0.3.0 (2024-03-04)
- Models are now enforced by
Model
&EmbedModel
enums.
- add client.embeddings() method (f44d951)
0.2.0 (2024-03-03)
- Chat completions must now be called directly from client.chat() without building a request in between.
0.1.0 (2024-03-03)
- add chat completion without streaming (7d3b438)