Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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