Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/la3rence/cf-llm-hono

Streaming LLM powered by Cloudflare AI
https://github.com/la3rence/cf-llm-hono

ai cloudflare hono

Last synced: 3 months ago
JSON representation

Streaming LLM powered by Cloudflare AI

Awesome Lists containing this project

README

        

# Hono for Cloudflare Workers AI and ChatGPT

Creat the `wrangle.toml` file for cloudflare deployment:

```toml
name = "my-llm-api"

[ai]
binding = "AI"

[vars]
GPT_API_KEY = ""
GPT_BASE = ""
```

```sh
pnpm install
pnpm run deploy
```

## Models

```txt
"text-davinci-002-render-sha",
"gemini-pro",
"@cf/meta/llama-2-7b-chat-int8",
"@cf/mistral/mistral-7b-instruct-v0.1",
"@cf/meta/llama-2-7b-chat-fp16",
"@hf/thebloke/llama-2-13b-chat-awq",
"@hf/thebloke/zephyr-7b-beta-awq",
"@hf/thebloke/mistral-7b-instruct-v0.1-awq",
"@hf/thebloke/codellama-7b-instruct-awq"
and more...
```

## Vercel AI SDK

This project is fully compitable with [Vercel AI SDK](https://sdk.vercel.ai/docs/api-reference/use-chat).

## Reference

- [Hono Docs](https://hono.dev/top)