https://github.com/yusukebe/hono-with-vercel-ai
An example for using Vercel AI SDK with Hono
https://github.com/yusukebe/hono-with-vercel-ai
Last synced: about 1 year ago
JSON representation
An example for using Vercel AI SDK with Hono
- Host: GitHub
- URL: https://github.com/yusukebe/hono-with-vercel-ai
- Owner: yusukebe
- Created: 2024-04-06T20:22:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-10T02:31:06.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T17:09:04.655Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 28
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An example of using Vercel AI SDK with Hono
This is a project to provide an example of using [Vercel AI SDK](https://sdk.vercel.ai/docs) 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:
```sh
npm i
```
Develop:
```sh
export OPENAI_API_KEY=your-openai-api-key
npm run dev
```
Deploy to Cloudflare Pages:
```sh
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