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

兼容 Azure dall-e-3 模型 #754

Merged
merged 5 commits into from
Dec 3, 2023
Merged

Conversation

ShinChven
Copy link
Contributor

@ShinChven ShinChven commented Nov 28, 2023

feat: 为relayImageHelper添加 Azure dall-e-3 模型兼容

  • 处理Azure通道请求URL的兼容性
  • 为Azure通道认证设置api-key头部
  • 处理Azure通道请求体

closes: #751

ShinChven and others added 4 commits November 20, 2023 21:34
- Extract domain from SMTPFrom
- Generate a unique Message-ID
- Add Message-ID to email headers
- Handle Azure channel requestURL compatibility
- Set api-key header for Azure channel authentication
- Handle Azure channel request body

fixes: songquanpeng#751
@songquanpeng songquanpeng merged commit b7570d5 into songquanpeng:main Dec 3, 2023
@songquanpeng
Copy link
Owner

Thx~

songquanpeng added a commit to simulacraliasing/one-api that referenced this pull request Dec 3, 2023
…t to fit official api reference for relay"

This reverts commit b526006.
songquanpeng added a commit that referenced this pull request Dec 3, 2023
…ut optional parameter (#764)

* fix: based on #754 add 'omitempty' in ImageRequest to fit official api reference for relay

* Revert "fix: based on #754 add 'omitempty' in ImageRequest to fit official api reference for relay"

This reverts commit b526006.

* fix: add missing omitempty

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
@ShinChven
Copy link
Contributor Author

ShinChven commented Dec 4, 2023

这个pull request被 a64dc6a 这次 commit 修改以后并没有达到预想的效果。
我怀疑在这里判断失效了
https://github.com/songquanpeng/one-api/blob/01f7b0186fae589e0e5fb83ab0e6d033ba5339aa/controller/relay-image.go#L105C1-L105C1

请再测试一下!

image

dirname pushed a commit to dirname/one-api that referenced this pull request Dec 22, 2023
* feat: Add Message-ID to email headers to comply with RFC 5322

- Extract domain from SMTPFrom
- Generate a unique Message-ID
- Add Message-ID to email headers

* chore: check slice length

* feat: Add Azure compatibility for relayImageHelper

- Handle Azure channel requestURL compatibility
- Set api-key header for Azure channel authentication
- Handle Azure channel request body

fixes: songquanpeng#751

* refactor: update implementation

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
dirname pushed a commit to dirname/one-api that referenced this pull request Dec 22, 2023
…ut optional parameter (songquanpeng#764)

* fix: based on songquanpeng#754 add 'omitempty' in ImageRequest to fit official api reference for relay

* Revert "fix: based on songquanpeng#754 add 'omitempty' in ImageRequest to fit official api reference for relay"

This reverts commit b526006.

* fix: add missing omitempty

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
greeeds pushed a commit to greeeds/one-api that referenced this pull request Mar 3, 2024
* feat: Add Message-ID to email headers to comply with RFC 5322

- Extract domain from SMTPFrom
- Generate a unique Message-ID
- Add Message-ID to email headers

* chore: check slice length

* feat: Add Azure compatibility for relayImageHelper

- Handle Azure channel requestURL compatibility
- Set api-key header for Azure channel authentication
- Handle Azure channel request body

fixes: songquanpeng#751

* refactor: update implementation

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
greeeds pushed a commit to greeeds/one-api that referenced this pull request Mar 3, 2024
…ut optional parameter (songquanpeng#764)

* fix: based on songquanpeng#754 add 'omitempty' in ImageRequest to fit official api reference for relay

* Revert "fix: based on songquanpeng#754 add 'omitempty' in ImageRequest to fit official api reference for relay"

This reverts commit b526006.

* fix: add missing omitempty

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DALL-E-3 生成图片报错
2 participants