()
| 299 | } |
| 300 | |
| 301 | pub fn get_user_gen_template() -> &'static str { |
| 302 | pub static GTEMPLATE: OnceCell<String> = OnceCell::new(); |
| 303 | GTEMPLATE.get_or_init(|| { |
| 304 | let config = get_config(); |
| 305 | let template = USER_GEN_TEMPLATE.to_string(); |
| 306 | template.replace("{project}", &config.target) |
| 307 | }) |
| 308 | } |
| 309 | |
| 310 | pub fn get_user_chat_template() -> String { |
| 311 | let library_name = get_library_name(); |
no test coverage detected