bigrobinson commited on
Commit
da4906d
·
verified ·
1 Parent(s): e966e34

set system_prompt variable

Browse files

```system_prompt``` not defined in example code-->add assignment before system prompt text.

Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -44,7 +44,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
44
  model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype='auto', device_map="auto")
45
 
46
  # Example usage (adapt as needed for your specific tool usage scenario)
47
- """You are an expert in composing functions. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
 
48
  If none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out.
49
  You should only return the function call in tools call sections.
50
 
 
44
  model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype='auto', device_map="auto")
45
 
46
  # Example usage (adapt as needed for your specific tool usage scenario)
47
+ system_prompt ="""
48
+ You are an expert in composing functions. You are given a question and a set of possible functions. Based on the question, you will need to make one or more function/tool calls to achieve the purpose.
49
  If none of the function can be used, point it out. If the given question lacks the parameters required by the function, also point it out.
50
  You should only return the function call in tools call sections.
51