Function Calling
Notice
deepseek-chat
model's Function Calling capabilitity is unstable, which may result in looped calls or empty responses. We are actively working on a fix, and it is expected to be resolved in the next version.Sample Code
1.
2.
get_weather({location: 'Hangzhou'})
3.
get_weather({location: 'Hangzhou'})
and provides the result to the model4.
get_weather
function needs to be provided by the user. The model itself does not execute specific functions.