This commit is contained in:
Richard Ulmer 2024-10-10 00:08:31 +01:00 committed by GitHub
commit c27f7f62f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,6 +136,13 @@ static std::string chat_add_and_format(struct llama_model * model, std::vector<l
}
int main(int argc, char ** argv) {
#if defined (__OpenBSD__)
if (pledge("stdio rpath", "") == -1) {
fprintf(stderr, "%s: error: pledge failed\n", __func__);
return 1;
}
#endif
gpt_params params;
g_params = &params;
if (!gpt_params_parse(argc, argv, params, LLAMA_EXAMPLE_MAIN, print_usage)) {