https://github.com/uk0/cf-ais
cf worker Artificial Intelligence Summary
https://github.com/uk0/cf-ais
cloudflare cloudflare-worker summary
Last synced: about 1 month ago
JSON representation
cf worker Artificial Intelligence Summary
- Host: GitHub
- URL: https://github.com/uk0/cf-ais
- Owner: uk0
- Created: 2025-11-08T11:30:58.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-11-11T02:10:01.000Z (7 months ago)
- Last Synced: 2026-03-29T21:49:32.135Z (3 months ago)
- Topics: cloudflare, cloudflare-worker, summary
- Language: JavaScript
- Homepage: https://firsh.me
- Size: 1.71 MB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Cloudflare Worker AIS - Artificial Intelligence Summary
> 支持图片内容,文本内容。
本地开发: `npx wrangler dev --port 80 --local`
### 部署worker
* [worker.js](worker.js) - worker 代码
* [wrangler.toml](wrangler.toml.prod) - 配置ENV
* ENV VARIABLES
* OPENAI_API_BASE - The default base URL for OpenAI API requests `optional`
* OPENAI_API_KEY - Your OpenAI API key for accessing the language model
* SUM_MODEL - The model to use for summarization (default: glm-4v-flash) `optional`
* DOMAIN_BIND - domain whitelist
### 放入 HTML 页面
```html
```
### Changelog
* 支持文本内容总结。
* 支持图片内容总结。
* 支持多apikey轮训,可以让各位手中的openai key 发挥更大作用。
* `DOMAIN_BIND` 白名单功能,防止滥用。
### Demo
