Skip to content

yusukebe/hono-with-vercel-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example of using Vercel AI SDK with Hono

This is a project to provide an example of using Vercel AI SDK with Hono.

Features

  • Minimal.
  • Using React on both the server side and client side.
  • Validating incoming values with Zod.
  • Streaming Response.
  • Develop with Vite in local. Deploy to Cloudflare Pages.

How to try

Install:

npm i

Develop:

export OPENAI_API_KEY=your-openai-api-key
npm run dev

Deploy to Cloudflare Pages:

npm run deploy

Note: For production usage, you should add an environment value for OPENAI_API_KEY in your Cloudflare Dashboard.

Author

Yusuke Wada

License

MIT

About

An example for using Vercel AI SDK with Hono

Resources

Stars

Watchers

Forks