Skip to content

Commit 7b7cb62

Browse files
authored
Merge pull request #72 from lazy-hq/release-0.4.0
Release v0.4.0
2 parents b84866f + 43fcd2c commit 7b7cb62

9 files changed

Lines changed: 14 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Changelog entries are grouped by type, with the following types:
1616

1717
## [Unreleased] - ReleaseDate
1818

19+
## [0.4.0] - 2026-01-24
20+
1921
### Added
2022
- Added `DynamicModel`, `model_name()` methods to set model name dynamically
2123
- Added `Vercel AI Geatway` provider
@@ -83,7 +85,8 @@ Changelog entries are grouped by type, with the following types:
8385
- Rebranded to aisdk
8486

8587
<!-- next-url -->
86-
[Unreleased]: https://github.com/lazy-hq/aisdk/compare/v0.3.0...HEAD
88+
[Unreleased]: https://github.com/lazy-hq/aisdk/compare/v0.4.0...HEAD
89+
[0.4.0]: https://github.com/lazy-hq/aisdk/compare/v0.3.0...v0.4.0
8790
[0.3.0]: https://github.com/lazy-hq/aisdk/compare/v0.2.1...v0.3.0
8891
[0.2.1]: https://github.com/lazy-hq/aisdk/compare/v0.2.0...v0.2.1
8992
[0.2.0]: https://github.com/lazy-hq/aisdk/compare/v0.1.0...v0.2.0

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44

55
[package]
66
name = "aisdk"
7-
version = "0.3.0"
7+
version = "0.4.0"
88
edition = "2024"
99
license = "MIT"
1010
description = "An open-source Rust library for building AI-powered applications, inspired by the Vercel AI SDK. It provides a robust, type-safe, and easy-to-use interface for interacting with various Large Language Models (LLMs)."

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cargo add aisdk --features openai
3030

3131
```rust
3232
use aisdk::core::LanguageModelRequest;
33-
use aisdk::providers::openai::OpenAI;
33+
use aisdk::providers::OpenAI;
3434

3535
#[tokio::main]
3636
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -77,7 +77,7 @@ Register tools with an agent so the model can call them during its reasoning loo
7777

7878
```rust
7979
use aisdk::core::{LanguageModelRequest, utils::step_count_is};
80-
use aisdk::providers::openai::OpenAI;
80+
use aisdk::providers::OpenAI;
8181

8282
#[tokio::main]
8383
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -117,7 +117,7 @@ Use the `schema` attribute to infer the structure of the output.
117117

118118
```rust
119119
use aisdk::core::LanguageModelRequest;
120-
use aisdk::providers::openai::OpenAI;
120+
use aisdk::providers::OpenAI;
121121

122122
#[tokio::main]
123123
async fn main() -> Result<(), Box<dyn std::error::Error>> {

examples/git-summary/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::collections::HashMap;
22

33
use aisdk::core::LanguageModelRequest;
44
use aisdk::prompt;
5-
use aisdk::providers::openai::OpenAI;
5+
use aisdk::providers::OpenAI;
66

77
mod git_tools {
88
use aisdk::core::tools::Tool;

macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ quote = "1.0"
1919
[dev-dependencies]
2020
serde_json = "1.0"
2121
tokio = { version = "1.46.1", features = ["full"]}
22-
aisdk = {path = "..", version = "0.3.0" }
22+
aisdk = {path = "..", version = "0.4.0" }
2323

2424
[[test]]
2525
name = "test_tools"

src/core/language_model/generate_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<M: LanguageModel> LanguageModelRequest<M> {
4343
///# {
4444
/// use aisdk::{
4545
/// core::{LanguageModelRequest},
46-
/// providers::openai::OpenAI,
46+
/// providers::OpenAI,
4747
/// };
4848
///
4949
/// async fn main() -> Result<(), Box<dyn std::error::Error>> {

src/core/language_model/stream_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<M: LanguageModel> LanguageModelRequest<M> {
4040
///# {
4141
/// use aisdk::{
4242
/// core::{LanguageModelRequest, LanguageModelStreamChunkType},
43-
/// providers::openai::OpenAI,
43+
/// providers::OpenAI,
4444
/// };
4545
/// use futures::StreamExt;
4646
///

src/core/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::{
2323
///
2424
/// ```rust,no_run
2525
/// use aisdk::core::{LanguageModelRequest, utils::step_count_is};
26-
/// // use aisdk::providers::openai::OpenAI; // Requires "openai" feature
26+
/// // use aisdk::providers::OpenAI; // Requires "openai" feature
2727
///
2828
/// // #[tokio::main]
2929
/// // async fn main() -> Result<(), Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)