| 114 | |
| 115 | |
| 116 | std::string Phi4::generate(chat_meta_info_t& meta_info, int length_limit, std::ostream& os, std::function<bool()> is_cancelled) { |
| 117 | return this->_shared_generate(meta_info, length_limit, os, is_cancelled); |
| 118 | } |
| 119 | |
| 120 | std::string Phi4::generate_with_prompt(chat_meta_info_t& meta_info, lm_uniform_input_t& input, int length_limit, std::ostream& os) { |
| 121 | if (!this->insert(meta_info, input)) { |