Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirotoshioi/ai-sdk-with-hono
This is a project to provide an example of using vercel ai SDK with Hono.
https://github.com/hirotoshioi/ai-sdk-with-hono
Last synced: about 1 month ago
JSON representation
This is a project to provide an example of using vercel ai SDK with Hono.
- Host: GitHub
- URL: https://github.com/hirotoshioi/ai-sdk-with-hono
- Owner: HirotoShioi
- Created: 2024-07-25T00:11:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T00:15:57.000Z (5 months ago)
- Last Synced: 2024-07-25T02:07:55.793Z (5 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An example of using Vercel AI SDK with Hono
Forked from [hono-with-vercel-ai](https://github.com/yusukebe/hono-with-vercel-ai)
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.
## License
MIT