Function Calling API
在 AI 模型中(例如 ChatGPT)集成函数支持允许模型请求执行客户端函数,从而在需要时访问必要的信息或动态执行任务。
The integration of function support in AI models, such as ChatGPT, permits the model to request the execution of client-side functions, thereby accessing necessary information or performing tasks dynamically as required.
Spring AI 目前支持以下 AI 模型的函数调用
Spring AI currently supports Function invocation for the following AI Models
-
OpenAI: Refer to the Open AI function invocation docs.
-
VertexAI Gemini: Refer to the Vertex AI Gemini function invocation docs.
-
Azure OpenAI: Refer to the Azure OpenAI function invocation docs.
-
Mistral AI: Refer to the Mistral AI function invocation docs.