Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudflare Workers AI 文本生成图像模型支持 #1551

Open
5 tasks done
WuJunJu opened this issue Jun 21, 2024 · 4 comments
Open
5 tasks done

cloudflare Workers AI 文本生成图像模型支持 #1551

WuJunJu opened this issue Jun 21, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request waiting for pr Waiting for a Pull Request to do this.

Comments

@WuJunJu
Copy link

WuJunJu commented Jun 21, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述
对cloudflare Workers AI 文本转图像模型的支持
模型列表:
@cf/runwayml/stable-diffusion-v1-5-img2img
@cf/stabilityai/stable-diffusion-xl-base-1.0
@cf/lykon/dreamshaper-8-lcm
@cf/bytedance/stable-diffusion-xl-lightning
@cf/runwayml/stable-diffusion-v1-5-inpainting
参考文档:https://developers.cloudflare.com/workers-ai/models/stable-diffusion-xl-base-1.0

@WuJunJu WuJunJu added the enhancement New feature or request label Jun 21, 2024
@snakeying
Copy link

同样需求,期待更新

@HynoR
Copy link

HynoR commented Jun 24, 2024

@snakeying @WuJunJu
摸鱼写了个worker.js,可以用Cloudflare worker.js模拟OpenAI的文本生图接口调用cf的图片生成模型。可以尝试一下。
https://github.com/HynoR/WorkerAI-img2OpenAI

由于one-api有模型对应的尺寸限制,worker做了下模型重定向。
image

@aicoder01
Copy link

同求

@igophper igophper self-assigned this Jun 28, 2024
@igophper igophper added the waiting for pr Waiting for a Pull Request to do this. label Jun 28, 2024
@igophper igophper assigned igophper and unassigned igophper Jun 28, 2024
@igophper
Copy link
Collaborator

后续会支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waiting for pr Waiting for a Pull Request to do this.
Projects
None yet
Development

No branches or pull requests

5 participants