Closed ShayBox closed 2 months ago
removal index (is 0) should be < len (is 0) https://github.com/pepperoni21/ollama-rs/blob/master/src/history.rs#L42
removal index (is 0) should be < len (is 0)
This panics if there's no messages (sending the first message), also there can be multiple system messages, and the system message could be at any point in the list, not just the start.
Yeah makes sense, I'll fix that
removal index (is 0) should be < len (is 0)
https://github.com/pepperoni21/ollama-rs/blob/master/src/history.rs#L42This panics if there's no messages (sending the first message), also there can be multiple system messages, and the system message could be at any point in the list, not just the start.