hiieu commited on
Commit
b861fca
1 Parent(s): 0a09f76

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -119,7 +119,8 @@ print(tokenizer.decode(response, skip_special_tokens=True))
119
  messages = [
120
  { "role": "system", "content": f"""You are a helpful assistant with access to the following functions: \n {str(functions_metadata)}\n\nTo use these functions respond with:\n<functioncall> {{ "name": "function_name", "arguments": {{ "arg_1": "value_1", "arg_1": "value_1", ... }} }} </functioncall>\n\nEdge cases you must handle:\n - If there are no functions that match the user request, you will respond politely that you cannot help."""},
121
  { "role": "user", "content": "What is the temperature in Tokyo right now?"},
122
- // You will get the previous prediction, extract it will the tag <functioncall>, execute it and append it to the messages like below:
 
123
  { "role": "assistant", "content": """<functioncall> {"name": "get_temperature", "arguments": '{"city": "Tokyo"}'} </functioncall>"""},
124
  { "role": "user", "content": """<function_response> {"temperature":30 C} </function_response>"""}
125
  ]
 
119
  messages = [
120
  { "role": "system", "content": f"""You are a helpful assistant with access to the following functions: \n {str(functions_metadata)}\n\nTo use these functions respond with:\n<functioncall> {{ "name": "function_name", "arguments": {{ "arg_1": "value_1", "arg_1": "value_1", ... }} }} </functioncall>\n\nEdge cases you must handle:\n - If there are no functions that match the user request, you will respond politely that you cannot help."""},
121
  { "role": "user", "content": "What is the temperature in Tokyo right now?"},
122
+ # You will get the previous prediction, extract it will the tag <functioncall>
123
+ # execute the function and append it to the messages like below:
124
  { "role": "assistant", "content": """<functioncall> {"name": "get_temperature", "arguments": '{"city": "Tokyo"}'} </functioncall>"""},
125
  { "role": "user", "content": """<function_response> {"temperature":30 C} </function_response>"""}
126
  ]