| 89 | } |
| 90 | |
| 91 | static void unset_reserved_args(common_preset & preset, bool unset_model_args) { |
| 92 | preset.unset_option("LLAMA_ARG_SSL_KEY_FILE"); |
| 93 | preset.unset_option("LLAMA_ARG_SSL_CERT_FILE"); |
| 94 | preset.unset_option("LLAMA_API_KEY"); |
| 95 | preset.unset_option("LLAMA_ARG_MODELS_DIR"); |
| 96 | preset.unset_option("LLAMA_ARG_MODELS_MAX"); |
| 97 | preset.unset_option("LLAMA_ARG_MODELS_PRESET"); |
| 98 | preset.unset_option("LLAMA_ARG_MODELS_AUTOLOAD"); |
| 99 | if (unset_model_args) { |
| 100 | preset.unset_option("LLAMA_ARG_MODEL"); |
| 101 | preset.unset_option("LLAMA_ARG_MMPROJ"); |
| 102 | preset.unset_option("LLAMA_ARG_ALIAS"); |
| 103 | preset.unset_option("LLAMA_ARG_HF_REPO"); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | #ifdef _WIN32 |
| 108 | static std::string wide_to_utf8(const wchar_t * ws) { |
no test coverage detected