(&mut self, msg: Message)
| 22 | |
| 23 | impl ChatHistory { |
| 24 | fn push(&mut self, msg: Message) { |
| 25 | match self { |
| 26 | Self::Llama(h) => h.push(msg), |
| 27 | Self::ChatML(h) => h.push(msg), |
| 28 | } |
| 29 | } |
| 30 | fn encode_dialog_to_prompt(&self) -> String { |
| 31 | match self { |
| 32 | Self::Llama(h) => h.encode_dialog_to_prompt(), |
no outgoing calls