Skip to content

Commit

Permalink
Release v0.3.0 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-markin authored Sep 24, 2024
1 parent e057f6f commit d76e7ca
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 16 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 2024-09-24

This release introduces several new features and improvements. Key updates are:

- Execution is now async, based on custom OpenAI API client implementation with proper error handling.
- Added the possibility to discard old messages in the context to keep it below allowed max token limit.
- Added support for Azure endpoints.
- The binary dependencies made optional in the library. Use `default-features = false` when depending on the library.
- CLI can now copy every response to clipboard via `xclip` on X11.

### Added

- Support Azure endpoints ([#4](https://github.com/dmitry-markin/jutella/pull/4))
- Implement rolling context window ([#3](https://github.com/dmitry-markin/jutella/pull/3))
- cli: Support copying every response to clipboard with `xclip` ([commit](https://github.com/dmitry-markin/jutella/commit/88e5ea633fca541edd140cd5c9c2941d8e2862ed))

### Changed

- Replace `openai_api_rust` with custom async OpenAI API client ([#2](https://github.com/dmitry-markin/jutella/pull/2))
- cli: Print `xclip` stderr on invocation failure ([commit](https://github.com/dmitry-markin/jutella/commit/06f5431a2f9fca4ca0babab24a37b9644f3e82c4))
- Make bin dependencies optional for lib ([commit](https://github.com/dmitry-markin/jutella/commit/ff76ba787df8739930cab43759c8903c48b326da))

## [0.2.0] - 2024-09-19

The project was renamed to `jutella`.
Expand Down
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "jutella"
description = "Chatbot API client library and CLI interface."
license = "MIT"
repository = "https://github.com/dmitry-markin/jutella"
version = "0.2.0"
version = "0.3.0"
edition = "2021"

[dependencies]
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ To get started with CLI, put your API key and endpoint into `~/.config/jutella.t

![Screenshot](doc/screenshot.png)

Invoking the CLI with `jutella -x` makes it copy every response to cliipboard on X11.

### Installation

1. Install `cargo` from https://rustup.rs/.
2. Install the CLI from [crates.io](https://crates.io/crates/jutella) with `cargo install jutella`.
3. Alternatively, clone the repo and build the CLI with `cargo build --release`. The resulting executable will be `target/release/jutella`.


## Library

Expand Down
4 changes: 2 additions & 2 deletions src/chat_client/openai_api/chat_completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use std::collections::HashMap;
/// See https://platform.openai.com/docs/api-reference/chat/create.
///
/// JSON example:
/// ```
/// ```json
/// {
/// "model": "gpt-4o",
/// "messages": [
Expand Down Expand Up @@ -231,7 +231,7 @@ pub struct ChatCompletionsBody {
/// See https://platform.openai.com/docs/api-reference/chat/object.
///
/// JSON example:
/// ```
/// ```json
/// {
/// "id": "chatcmpl-123",
/// "object": "chat.completion",
Expand Down

0 comments on commit d76e7ca

Please sign in to comment.