Learn how to deploy NextChat to Vercel and extend abilities with Function Calling by Vivgrid AI Bridge
Deploy NextChat to Vercel
Vercel - Environment Variables Settings Page
BASE_URL
: https://api.vivgrid.com
OPENAI_API_KEY
: grab it from Vivgrid ConsoleIt works!
Compare amazon and shopify network performance
in your AI application.You will see the followings:OpenAI Chat Completions w/o Function Calling
gpt-4o
model capabilities by Function Calling feature, OpenAI has great cookbook on how to call functions with chat models, but it’s complex to implement and maintain:OpenAI Cookbook: How to call functions with chat models
Extend your AI application abilities by Calling Serverless in Strong-typed language
linux ping
Function Calling serverless in Go, before this, you need to install the YoMo Framework:ping
to measure the network performance for a given website:description
for our function, this helps OpenAI to understand the function, it’s very important for the accuracy. What we need to do is to implement the Description
function in the app.go
:ping()
requires a domain name as parameter, we will ask OpenAI to inference the domain name from the user input, and pass it by Arguments
in tools_call
:Run it locally
.env
file with the following content:Deploy to Vivgrid Geo-distributed Network
yc.yml
with content:yc
CLI installed, if not, install it
follows here.OpenAI Chat Completions w/ Function Calling on Vivgrid