Skip to content

Commit

Permalink
prevent doubled function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
spennythug committed Dec 22, 2023
1 parent 2a4e807 commit 96915c6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/converse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ impl Conversation {
let msg = &resp.message_choices[0].message;
self.history.push(msg.clone());
if let Some(function_response) = self.process_possible_function_response(msg).await {
self.history
.push(function_response.message_choices[0].message.clone());
Ok(function_response)
} else {
Ok(resp)
Expand Down

0 comments on commit 96915c6

Please sign in to comment.