dify icon indicating copy to clipboard operation
dify copied to clipboard

feat: add xinference sd web ui api tool

Open themanforfree opened this issue 1 year ago • 1 comments

Checklist:

[!IMPORTANT]
Please review the checklist below before submitting your pull request.

  • [x] Please open an issue before creating a PR or link to an existing issue
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. Close issue syntax: Fixes #<issue number>, see documentation for more details.

Fixes

Type of Change

  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update, included: Dify Document
  • [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
  • [ ] Dependency upgrade

Testing Instructions

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ ] Test A
  • [ ] Test B

themanforfree avatar Sep 13 '24 13:09 themanforfree

Since the implementation is similar to stable diffusion but with authorization, is it possible to let the code inherited from stable diffusion tool?

qinxuye avatar Sep 14 '24 06:09 qinxuye

Since the implementation is similar to stable diffusion but with authorization, is it possible to let the code inherited from stable diffusion tool?

The relevant logic must be modified through internal methods and cannot be solved through inheritance

themanforfree avatar Sep 24 '24 02:09 themanforfree

@crazywoola

themanforfree avatar Sep 24 '24 02:09 themanforfree

这个插件可以授权在xinference里面部署的flux 但是调用会报错 是不是只能兼容xinference的stablediffusion不兼容flux

XiaoCC avatar Feb 10 '25 04:02 XiaoCC

应该能兼容 flux,报啥错?

qinxuye avatar Feb 10 '25 05:02 qinxuye

应该能兼容 flux,报啥错?

image image image xinference里面部署的是Q4_k_s量化版本的flux dev

image xinference这边能正常出图 帮忙看看是不是这个插件问题,谢谢

XiaoCC avatar Feb 10 '25 05:02 XiaoCC

去 https://github.com/xorbitsai/inference/issues/new?template=bug_report.yaml 开个 issue 把。我们查一下。

qinxuye avatar Feb 10 '25 05:02 qinxuye

去 https://github.com/xorbitsai/inference/issues/new?template=bug_report.yaml 开个 issue 把。我们查一下。

https://github.com/xorbitsai/inference/issues/2832 好的

XiaoCC avatar Feb 10 '25 05:02 XiaoCC