gcc appeasement

This commit is contained in:
ochafik 2024-09-26 06:08:18 +01:00
parent 0c870133d8
commit 749a21c67a

View file

@ -377,14 +377,17 @@ extern "C" {
} llama_sampler_chain_params; } llama_sampler_chain_params;
// used in chat template // used in chat template
typedef struct llama_tool_call {
const char * name;
const char * arguments;
} llama_tool_call;
typedef struct llama_chat_message { typedef struct llama_chat_message {
const char * role; const char * role;
const char * content; const char * content;
const char * tool; const char * tool;
struct llama_tool_call {
const char * name;
const char * arguments;
};
const llama_tool_call * tool_calls; const llama_tool_call * tool_calls;
uint32_t n_tool_calls; uint32_t n_tool_calls;
} llama_chat_message; } llama_chat_message;
@ -984,10 +987,10 @@ extern "C" {
bool add_ass, bool add_ass,
char * buf, char * buf,
int32_t length, int32_t length,
bool use_jinja = false, bool use_jinja,
const char * tools = nullptr, const char * tools,
const char * bos_token = nullptr, const char * bos_token,
const char * eos_token = nullptr); const char * eos_token);
// //
// Sampling API // Sampling API