The local-llm-function-calling project is designed to constrain the generation of Hugging Face text generation models by enforcing a JSON schema and facilitating the formulation of prompts for function calls, similar to OpenAI's function calling feature, but actually enforcing the schema unlike OpenAI...
prompt,function_name,max_new_tokens,max_length ) return{"name":function_name,"parameters":arguments} return{"name":function_name,"arguments":arguments} defshould_call( self, 2 changes: 1 addition & 1 deletion2local_llm_function_calling/prompter.py ...
Cancel Create saved search Sign in Sign up Reseting focus {{ message }} genostack / local-llm-function-calling Public forked from rizerphe/local-llm-function-calling Notifications You must be signed in to change notification settings Fork 0 Star 0 ...
prompt, function_name, max_new_tokens, max_length ) return {"name": function_name, "parameters": arguments} return {"name": function_name, "arguments": arguments} def should_call( self, 2 changes: 1 addition & 1 deletion 2 local_llm_function_calling/prompter.py Original file line...