From 31307568e2124bc24c9998b497efb87d0e1f6f34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=88=E5=96=B5=E6=A2=A6?= <152958106+Nekohy@users.noreply.github.com> Date: Sun, 3 Nov 2024 06:00:41 +0800 Subject: [PATCH 1/2] Update readme.md --- readme.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/readme.md b/readme.md index df4956a..bbd9bed 100644 --- a/readme.md +++ b/readme.md @@ -13,7 +13,7 @@ # DEMO站 **请善待公共服务,尽量自己搭建** -[Vercel](https://pieces.nekomoon.cc) +~~[Vercel](https://pieces.nekomoon.cc)~~ [Cloudflare worker反代koyeb](https://pieces.464888.xyz) # 一键部署 @@ -210,6 +210,3 @@ docker rm pieces-os ``` 请确保在使用服务时使用正确的 API_KEY 进行认证。 - -# 碎碎念 -我怎么把自己的提交邮箱写错了呢(这些提交都不算在我这个号头上(QWQ From e5fdc2f441818a16d544444148ffb4231b42c296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E7=A9=BA=E7=9B=B8=E4=BC=B4?= <150510690+2328760190@users.noreply.github.com> Date: Sun, 3 Nov 2024 13:54:43 +0800 Subject: [PATCH 2/2] Update readme.md --- readme.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bbd9bed..b3b6eb4 100644 --- a/readme.md +++ b/readme.md @@ -11,16 +11,25 @@ # 免责声明 本项目仅供学习交流使用,不得用于商业用途,如有侵权请联系删除 # DEMO站 -**请善待公共服务,尽量自己搭建** +**请善待公共服务,尽量自己搭建(不要搞黄,demo会崩溃)** ~~[Vercel](https://pieces.nekomoon.cc)~~ [Cloudflare worker反代koyeb](https://pieces.464888.xyz) + +[HuggingFace](https://chb2024-pieces-os.hf.space/hf) +API_PREFIX环境变量为/hf + # 一键部署 [![Deploy on Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/Nekohy/pieces-os&project-name=Pieces-OS&repository-name=Pieces-OS) [![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?name=pieces-os&type=docker&image=chb2024%2Fpieces-os%3Alatest®ions=was&env%5B%5D=&ports=8787%3Bhttp%3B%2F) +[复制huggingface空间](https://huggingface.co/spaces/chb2024/pieces-os?duplicate=true&visibility=public) +注意事项 +抱脸会阻止/v1的请求,设置API_PREFIX为/hf或任意/+其他字母或数字组合即可,使用时在原先的请求点上添加即可,例如https://xxx.hf.space/v1/models变成https://xxx.hf.space/hf/v1/models +如果不能复制空间,就把原空间文件全部下载,新建一个public空间,删除之前的并重新上传并重启即可 + 请注意下列环境变量!私人使用请添加API_KEY! cloudflare work反代koyeb