Slavi Pantaleev
68a2fb161f
Release 1.7.4
v1.7.4
2025-06-10 16:38:03 +03:00
Slavi Pantaleev
3a3eb58d7b
Update Cargo.lock-pinned dependencies
2025-06-10 16:37:13 +03:00
Slavi Pantaleev
74d988e650
Update mxlink (1.8.0 -> 1.8.1)
2025-06-10 16:33:44 +03:00
Slavi Pantaleev
ed8bedcd7e
Release 1.7.3
v1.7.3
2025-06-10 15:28:56 +03:00
Slavi Pantaleev
2842632969
Disable async-openai feature of tiktoken-rs crate
...
We don't make use of this feature, so it's not necessary.
Ref: af52be12fa/tiktoken-rs/Cargo.toml (L21)
2025-06-10 15:26:25 +03:00
Slavi Pantaleev
10a5bd2abb
Update OpenAI model in sample config (gpt-4o -> gpt-4.1)
2025-06-10 15:20:00 +03:00
Slavi Pantaleev
5308b75f52
Update dependencies
2025-06-10 15:18:58 +03:00
Slavi Pantaleev
dad61e1270
Adjust docker run command on installation instructions to ensure /tmp is writable
...
Ref: https://github.com/etkecc/baibot/issues/43
2025-06-09 10:54:11 +03:00
Slavi Pantaleev
91986a129c
Release 1.7.2
v1.7.2
2025-05-11 23:20:58 +03:00
Slavi Pantaleev
264f683d6a
Allow image_generation.size to be null for OpenAI and default it to that
...
The API spec for image creation and image editing says "string or null",
so we're allowing `null` now to trigger automatic selection.
2025-05-11 23:20:07 +03:00
Slavi Pantaleev
62f0f4fa0d
Release 1.7.1
v1.7.1
2025-05-11 22:20:26 +03:00
Slavi Pantaleev
69627abd74
Add image-editing feature documentation to the !bai usage command and adjust texts a bit
2025-05-11 22:19:15 +03:00
Slavi Pantaleev
d2660be33c
Update sample config for OpenAI to use gpt-image-1, not dall-e-3
2025-05-10 12:30:16 +03:00
Slavi Pantaleev
ce81fe69bd
Release 1.7.0
v1.7.0
2025-05-10 12:22:58 +03:00
Slavi Pantaleev
1162636b88
Upgrade Rust (1.85.1 -> 1.86.0)
2025-05-10 12:22:46 +03:00
Slavi Pantaleev
8c90e13a79
Upgrade services
2025-05-10 12:11:08 +03:00
Slavi Pantaleev
274b614d25
Update dependencies
2025-05-10 11:58:06 +03:00
Slavi Pantaleev
7bd46821dc
Update README to mention the images editing feature
2025-05-10 11:49:43 +03:00
Slavi Pantaleev
a84135ff32
fmt
2025-05-10 11:47:50 +03:00
Slavi Pantaleev
231528a0d8
Document which providers support vision
2025-05-10 11:47:00 +03:00
Slavi Pantaleev
d8e47b0578
Document vision support for text-generation
2025-05-10 11:39:33 +03:00
Slavi Pantaleev
96c1542f4a
Add an image-editing screenshot that demos multiple image support
2025-05-10 11:36:14 +03:00
Slavi Pantaleev
2f9c3dfce0
Use patched anthropic-rs library to add Vision support to text conversations
...
Related to: https://github.com/AbdelStark/anthropic-rs/pull/11
2025-05-10 10:25:15 +03:00
Slavi Pantaleev
de958208b2
Use patched async-openai library to work around a few upstream issues
...
Related to:
- CreateImageEditRequest forces an application/octet-stream content type
for images (https://github.com/64bit/async-openai/issues/364 )
- CreateImageEditRequest only deals with a single image
(https://github.com/64bit/async-openai/issues/363 )
This is a continuation of 8f86289373
and fixes the Image Editing feature for OpenAI.
2025-05-10 10:00:36 +03:00
Slavi Pantaleev
ac4f2080ce
Make some improvements as suggested by clippy
2025-05-10 09:33:44 +03:00
Slavi Pantaleev
3ffa50b7b9
Use ImageInput|AudioInput::from_vec_u8 helper
2025-05-10 09:29:06 +03:00
Slavi Pantaleev
8f86289373
Initial work on Vision support in text conversations and Image Editing
...
This is a huge patch which does some major refactoring like:
- renaming "Image Generation" to "Image Creation" in most places,
to better match its new command (`!bai image create`)
- relocating image creation command (`!bai image` -> `!bai image create`),
so it wouldn't conflict with the new image editing command (`!bai image edit`)
- introducing a new image editing command (`!bai image edit`), which
is meant to work only with the OpenAI provider, but doesn't fully work yet
due to https://github.com/64bit/async-openai/issues/364 , though a next patch will fix it
- adding support for reading images off of Matrix conversations and forwarding them to
text conversations. Works for OpenAI, but not for Anthropic yet
(requires custom patches) and not for OpenAI-Compat (no support for
images there)
- relocating some utils around (base64, mime)
2025-05-10 09:18:01 +03:00
Slavi Pantaleev
e0dcc39a72
Default OpenAI image-generation model to gpt-image-1 (previously dall-e-3)
2025-05-03 09:42:46 +03:00
Slavi Pantaleev
c94376109c
Avoid passing response_format to OpenAI's image generation API for the gpt-image-1 model
...
The API reference for `response_format` says:
> This parameter isn't supported for gpt-image-1 which will always return base64-encoded images.
Related to https://github.com/etkecc/baibot/issues/40
2025-05-03 09:42:44 +03:00
Slavi Pantaleev
256ed05662
Make style, quality and internal response_format image generation parameters optional
...
Some OpenAI models (like `gpt-image-1`) either don't support these or
only support specific other values.
Related to https://github.com/etkecc/baibot/issues/40
2025-05-03 09:42:39 +03:00
Slavi Pantaleev
8222681e27
Default OpenAI text-generation model to gpt-4.1 (previously gpt-4o)
2025-05-03 09:42:37 +03:00
Slavi Pantaleev
f304b93c68
Improve in-room error reporting details when image generation fails
...
What previously was a generic error message like:
> ⚠️ Error: An error occurred while processing your message. Please try again.
.. now becomes a much more helpful error message like:
> ⚠️ Error: There was a problem performing image-generation via the room-local/my-openai-agent agent:
>
> invalid_request_error: Invalid value: 'standard'. Supported values are: 'low', 'medium', 'high', and 'auto'. (param: quality) (code: invalid_value)
Related to https://github.com/etkecc/baibot/issues/40
2025-05-03 09:42:28 +03:00
Slavi Pantaleev
889d8a1d04
Upgrade Synapse (v1.127.1 -> v1.128.0) and Element Web (v1.11.96 -> v1.11.99)
2025-05-03 08:50:00 +03:00
Slavi Pantaleev
6082bfaf56
Release 1.6.0
v1.6.0
2025-04-12 08:04:23 +03:00
Slavi Pantaleev
1d629e0859
Update dependencies
2025-04-12 07:57:12 +03:00
Slavi Pantaleev
49471c1df0
Upgrade mxlink (1.6.0 -> 1.7.0) and matrix-sdk (0.10.0 -> 0.11.0)
2025-04-12 07:49:26 +03:00
Slavi Pantaleev
8f956d2329
Release 1.5.1
v1.5.1
2025-03-31 14:37:23 +03:00
Slavi Pantaleev
ba4aa35987
Upgrade Rust compiler in container image (1.85.0 -> 1.85.1)
2025-03-31 14:33:49 +03:00
Slavi Pantaleev
06d699a17d
Update dependencies
2025-03-31 14:33:49 +03:00
Slavi Pantaleev
77d41fb7eb
Update services
2025-03-31 14:33:49 +03:00
Slavi Pantaleev
aaf283dde3
Upgrade Element Web (v1.11.93 -> v1.11.96) and adapt to its own way of running as a non-privileged user
2025-03-31 14:33:49 +03:00
Slavi Pantaleev
17eafa86af
Release 1.5.0
v1.5.0
2025-02-27 11:29:26 +02:00
Slavi Pantaleev
4704934b06
Run amd64 builds on a self-hosted runner
2025-02-27 11:06:18 +02:00
Slavi Pantaleev
6719538530
Switch to using native ARM64 builders
...
The workflow code is inspired by https://github.com/matrix-org/matrix-hookshot/pull/1007
Ref: https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/
This decreases build times from ~40 minutes (on powerful self-hosted runners) to ~8 minutes (on public runners).
2025-02-27 10:31:23 +02:00
Slavi Pantaleev
59e2746578
Remove explicit lifetime to fix clippy-reported warning
2025-02-27 09:58:58 +02:00
Slavi Pantaleev
47d8edea70
Add support for configuring max_completion_tokens for OpenAI
...
Related to db9422740c
2025-02-27 09:58:58 +02:00
Slavi Pantaleev
692d61b239
Replace Anthropic library (anthropic-rs -> anthropic) and switch default recommended model (claude-3-5-sonnet-20240620 -> claude-3-7-sonnet-20250219)
...
Fixes https://github.com/etkecc/baibot/issues/22
Ultimate related to `anthropic-rs` hardcoding models as enumeration variants in the code
and not updating them. See:
- https://github.com/roushou/mesh/issues/1
- https://github.com/roushou/mesh/pull/2
https://github.com/cortesi/misanthropy was also considered as an
alternative, but it did not allow configuring the base API URL like our
old Anthropic library (`anthropic-rs`) and like our new choice (`anthropic`).
We'd rather not lose support for this, so we're going with the `anthropic` library.
2025-02-27 09:44:49 +02:00
Slavi Pantaleev
05902f4c17
Add fmt justfile recipe
2025-02-27 09:31:26 +02:00
Slavi Pantaleev
7e66068b16
Update dependencies
2025-02-27 07:48:10 +02:00
Slavi Pantaleev
406141cd7d
fmt
2025-02-27 07:46:16 +02:00