summaryrefslogtreecommitdiffstats
path: root/src/client/stream.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-10-19 20:10:22 +0800
committerGitHub <noreply@github.com>2024-10-19 20:10:22 +0800
commit7b20ab064f30b7eddd18cecb9afb93e2b2c2965a (patch)
tree45030db5b840684ad9ee404564870807e78ed06c /src/client/stream.rs
parent7e29f642a99682ea7bb074eb4e7aa7d34d523515 (diff)
downloadaichat-7b20ab064f30b7eddd18cecb9afb93e2b2c2965a.tar.gz
refactor: improve handling of no_stream/no_system_message (#936)
Diffstat (limited to 'src/client/stream.rs')
-rw-r--r--src/client/stream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/stream.rs b/src/client/stream.rs
index 7fa1abd..735ec93 100644
--- a/src/client/stream.rs
+++ b/src/client/stream.rs
@@ -61,11 +61,11 @@ impl SseHandler {
Ok(())
}
- pub fn get_abort(&self) -> AbortSignal {
+ pub fn abort(&self) -> AbortSignal {
self.abort.clone()
}
- pub fn get_tool_calls(&self) -> &[ToolCall] {
+ pub fn tool_calls(&self) -> &[ToolCall] {
&self.tool_calls
}