Notification that a required function is missing DOESN'T work

#6
by DiTy - opened

I expected that model inform me about missing function but I got this:

[INST] [BEGIN OF TASK INSTRUCTION]
Based on the previous context and API request history, generate an API request or a response as an AI assistant.
[END OF TASK INSTRUCTION]

[BEGIN OF AVAILABLE TOOLS]
[{"name": "get_weather", "description": "Get the current weather for a location", "parameters": {"location": {"type": "string", "description": "The city and state, e.g. San Francisco, New York"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"], "description": "The unit of temperature to return"}}}]
[END OF AVAILABLE TOOLS]

[BEGIN OF FORMAT INSTRUCTION]
The output should be of the JSON format, which specifies a list of generated function calls. The example format is as follows, please make sure the parameter type is correct. If no function call is needed, please make 
tool_calls an empty list "[]".
'''
{"thought": "the thought process, or an empty string", "tool_calls": [{"name": "api_name1", "arguments": {"argument1": "value1", "argument2": "value2"}}]}
'''
[END OF FORMAT INSTRUCTION]

[BEGIN OF QUERY]
I need book a hotel in California, pls!
[END OF QUERY]


[BEGIN OF HISTORY STEPS]
[{"step_id": 0, "thought": "The user is asking for a hotel booking in California, but the available tools do not support hotel booking. I will need to inform the user about this limitation.", "tool_calls": [], "next_observation": "", "user_input": ""}]
[END OF HISTORY STEPS]
 [/INST] {"thought": "The user is asking for a hotel booking in California, but the available tools do not support hotel booking. I will need to inform the user about this limitation.", "tool_calls": []}

Response is duplicated:

{"thought": "The user is asking for a hotel booking in California, but the available tools do not support hotel booking. I will need to inform the user about this limitation.", "tool_calls": []}

Sign up or log in to comment