Skip to content

Commit

Permalink
fix mistral tool sanitization (#7894)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Oct 4, 2024
1 parent 2d964ee commit 6de867a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/providers/mistral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn sanitize_tool_call_id(id: &str) -> String {
.collect::<String>();

if s.len() > 9 {
s = id[0..9].to_string();
s = s[0..9].to_string();
}
if s.len() < 9 {
s = format!("{:0>9}", s);
Expand Down

0 comments on commit 6de867a

Please sign in to comment.