Skip to content

Commit

Permalink
Merge pull request #105 from ShenMian/master
Browse files Browse the repository at this point in the history
refactor: remove unnecessary mut
  • Loading branch information
pepperoni21 authored Jan 5, 2025
2 parents c15e49a + 7667f8d commit 2ae63be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generation/chat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Ollama {
#[cfg_attr(docsrs, doc(cfg(feature = "stream")))]
#[cfg(feature = "stream")]
pub async fn send_chat_messages_with_history_stream<C: ChatHistory + Send + 'static>(
&mut self,
&self,
history: Arc<Mutex<C>>,
mut request: ChatMessageRequest,
) -> crate::error::Result<ChatMessageResponseStream> {
Expand Down

0 comments on commit 2ae63be

Please sign in to comment.