OpenAI Functions CertainOpenAI models(like gpt-3.5-turbo-0613 and gpt-4-0613) have been explicitlyfine-tunedto detect when a function should be called and respond with the inputs that should be passed to the function. The OpenAI Functions Agent is designedtowork with these models. db=SQLData...
Simple, fast, stable: support Azure OpenAI models: GPT3.5-turbo, GPT4, GPT4-turbo Build-in interpreters: JavaScript(built-in vm context) Coming Soon functions and json_mode support for more stable and consistent response Interpreters: File, Shell, AppleScript, Retrieve Embedding, etc. Skill Set...
Or you can use these clients asLLM-based toolswhere the LLM decides when and how to invoke the underlying functions for you. This works across all of the major AI SDKs via adapters. Here's an example usingVercel's AI SDK: // sdk-specific importsimport{openai}from'@ai-sdk/openai'import...