Releases: mochi-neko/clust
Releases · mochi-neko/clust
v0.9.0
v0.8.0
Added
- Add builder pattern for
clust::messages::MessagesRequestBody
:clust::messages::MessagesRequestBodyBuilder
. - Add
clust::attributes
for attribute macros.
Changed
- Rename builder methods of
clust::ClientBuilder
.
v0.7.0
Added
- Support function calling.
- Add the attribute macro
clust::clust_macros::clust_tool
to use function calling easily viaclust::messages::Tool
orclust::messages::AsyncTool
.
Changed
- Remove type aliases for
std::result::Result
and explicitly specify generics.
v0.6.0
Added
- Add text flattening method for
Content
:Content::flatten_into_text()
. <- (#1) - Add image source flattening method for
Content
:Content::flatten_into_image_source()
. - Add assistant message creation method for
MessagesResponseBody
:MessagesResponseBody::create_message()
. - Add builder pattern for
Client
:ClientBuilder
. - Add an example to create a message with vision.
- Add an example to converse with the assistant.
Changed
- Rename
StreamChunk
toMessageChunk
. - Rename
Content::MultipleBlock
toContent::MultipleBlocks
. - Improve initialization and conversion methods for
Content
andMessage
.
Fixed
- Fix default value of the
role
field in theMessagesResponseBody
fromRole::user
toRole::assistant
.
v.0.5.0
Changed
- Improve crate dependencies.
Removed
- Abolish the feature flag:
tokio_stream
.
v0.4.0
Added
- Support streaming API with
tokio
backend by optional.
v0.3.0
Added
- Add the Claude 3 Haiku model:
claude-3-haiku-20240307
.
v0.2.0
Added
- Add the
Streaming Messages
API.
Changed
- Improve type annotation of the
type
field in theMessagesRespponseBody
.
v0.1.0
First release.
Added
- Add the
Create a Message
API.