File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments