Skip to content

Commit 749a21c

Browse files
author
ochafik
committed
gcc appeasement
1 parent 0c87013 commit 749a21c

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

include/llama.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,17 @@ extern "C" {
377377
} llama_sampler_chain_params;
378378

379379
// used in chat template
380+
381+
typedef struct llama_tool_call {
382+
const char * name;
383+
const char * arguments;
384+
} llama_tool_call;
385+
380386
typedef struct llama_chat_message {
381387
const char * role;
382388
const char * content;
383389
const char * tool;
384-
struct llama_tool_call {
385-
const char * name;
386-
const char * arguments;
387-
};
390+
388391
const llama_tool_call * tool_calls;
389392
uint32_t n_tool_calls;
390393
} llama_chat_message;
@@ -984,10 +987,10 @@ extern "C" {
984987
bool add_ass,
985988
char * buf,
986989
int32_t length,
987-
bool use_jinja = false,
988-
const char * tools = nullptr,
989-
const char * bos_token = nullptr,
990-
const char * eos_token = nullptr);
990+
bool use_jinja,
991+
const char * tools,
992+
const char * bos_token,
993+
const char * eos_token);
991994

992995
//
993996
// Sampling API

0 commit comments

Comments
 (0)