Skip to content

Commit 4e02cf4

Browse files
committed
v0.1.9
1 parent f470e5d commit 4e02cf4

File tree

3 files changed

+54
-33
lines changed

3 files changed

+54
-33
lines changed

Cargo.lock

Lines changed: 50 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "openagent"
88
readme = "README.md"
99
repository = "https://github.com/hack-ink/openagent"
1010
resolver = "3"
11-
version = "0.1.8"
11+
version = "0.1.9"
1212

1313
[profile.ci-dev]
1414
incremental = false
@@ -36,6 +36,6 @@ tracing = { version = "0.1" }
3636
[dev-dependencies]
3737
# crates.io
3838
dotenvy = { version = "0.15" }
39-
rmcp = { version = "0.2", features = ["client", "reqwest", "transport-child-process", "transport-sse-client", "transport-streamable-http-client"] }
39+
rmcp = { version = "0.3", features = ["client", "reqwest", "transport-child-process", "transport-sse-client", "transport-streamable-http-client"] }
4040
tokio = { version = "1.46", features = ["full"] }
4141
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

src/api/chat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ pub struct ChatUsage {
293293
pub completion_tokens: u32,
294294
pub prompt_tokens: u32,
295295
pub total_tokens: u32,
296-
pub completion_tokens_details: ChatCompletionTokensDetails,
297-
pub prompt_tokens_details: ChatPromptTokensDetails,
296+
pub completion_tokens_details: Option<ChatCompletionTokensDetails>,
297+
pub prompt_tokens_details: Option<ChatPromptTokensDetails>,
298298
}
299299

300300
#[allow(missing_docs)]

0 commit comments

Comments
 (0)