snakeying / flux-api-worker

Deployed on Cloudflare Worker, using the free Flux model and optimizing prompts with LLM. It can be called from any application compatible with the OpenAI API. 部署于Cloudflare Worker,免费使用Flux模型,并通过LLM进行提示词优化,支持在任何兼容OpenAI API的应用中调用。
58 stars 3 forks source link

能不能支持Deno部署? #2

Open anunol opened 3 days ago

anunol commented 3 days ago

描述:

Cloudflare(CF)阻止了来自Hugging Face Space的API访问,这让在该平台上使用OpenWebUI非常麻烦。为了绕过这个限制,我目前用Deno反向代理CF worker,这个过程比较繁琐。如果可以直接在Deno上部署会方便很多。Deno几乎与CF workers兼容,并且提供免费的KV存储。

请求:

  1. Deno版本:请研究并发布一个兼容Deno的版本,使用Deno的KV存储。
  2. API端点支持:确保API能够同时支持/v1/chat/completions/v1/images/generations端点。

这个改进将简化部署流程,并扩大服务的可访问性。谢谢!

snakeying commented 1 day ago

抱歉我没有使用过Deno。。。我不太清楚应该如何支持。。。