supershaneski/openai-api-function-call-sample
A sample app to demonstrate Function calling using the latest format in Chat Completions API and also in Assistants API.
This project helps developers integrate AI models like GPT-3.5 or GPT-4 into their applications so those applications can intelligently use external tools. It demonstrates how to feed user queries into an AI, let the AI decide which external functions to call (like getting weather or booking a hotel), and then process the results back to the user. The primary user is a developer building AI-powered applications that need to interact with external systems.
No commits in the last 6 months.
Use this if you are a developer looking for a practical example of how to implement function calling with OpenAI's Chat Completions or Assistants API in a Next.js application.
Not ideal if you are an end-user looking for a ready-to-use AI assistant or an application development framework, as this is a sample demonstrating a specific API feature.
Stars
97
Forks
16
Language
JavaScript
License
MIT
Category
Last pushed
Nov 21, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/supershaneski/openai-api-function-call-sample"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
ndycode/oc-chatgpt-multi-auth
OpenCode plugin for using ChatGPT Plus/Pro in GPT-5 and Codex workflows with OAuth login,...
oceanlvr/ChatGPT-ProBot
🤖️ A ChatGPT based GitHub robot. dialogue/CR/etc..
dataforseo/open-ai-actions
OpenAPI specs for integrating DataForSEO APIs with ChatGPT Actions
rizerphe/openai-functions
Generate ChatGPT function call schemas based on function docstrings.
FullStackWithLawrence/openai-hello-world
A Python "Hello World" application that also demonstrates the OpenAI API and usage of Docker.