Add Prompt Revision for Empty Response

#3
Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -110,6 +110,7 @@ pip install transformers>=4.41.0
110
 
111
  We use the following example to illustrate how to use our model to perform function-calling tasks.
112
  Please note that, our model works best with our provided prompt format.
 
113
  It allows us to extract JSON output that is similar to the [function-calling mode of ChatGPT](https://platform.openai.com/docs/guides/function-calling).
114
 
115
  ````python
 
110
 
111
  We use the following example to illustrate how to use our model to perform function-calling tasks.
112
  Please note that, our model works best with our provided prompt format.
113
+ In case the provided prompt returns an empty result on a reasonable query, try removing the following from the prompt: ```If no function call is needed, please make tool_calls an empty list '[]'.```
114
  It allows us to extract JSON output that is similar to the [function-calling mode of ChatGPT](https://platform.openai.com/docs/guides/function-calling).
115
 
116
  ````python