bokssssss / lightbulb-moment-tool-calling

Workers AI Tool Calling Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homie - Home Automation Chat

This is a Workers AI application that makes use of Tool Calling using the Hermes 2 Pro on Mistral 7B model.

It adds the ability to control a Govee light device through English controls by making use of a Large Language Model.

NOTE: It will still "work" without owning a light, but it would be a lot cooler if you did.

📚 Function Calling Documentation

Installation

If you have a light:

Copy .dev.vars.example to .dev.vars and add your GOVEE_API_KEY;

npm install
# If it's your first time here
npx wrangler login

Develop

npm run dev

Deploy

npm run deploy

About

Workers AI Tool Calling Example


Languages

Language:TypeScript 41.4%Language:JavaScript 32.2%Language:CSS 17.7%Language:HTML 8.7%