(message: &Message)
| 17 | |
| 18 | impl ChatMLHistory { |
| 19 | fn encode_message(message: &Message) -> String { |
| 20 | format!( |
| 21 | "<|im_start|>{}\n{}<|im_end|>", |
| 22 | message.role, |
| 23 | message.content.trim() |
| 24 | ) |
| 25 | } |
| 26 | |
| 27 | /// Create a new instance of this object. |
| 28 | pub fn new() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected