generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat: reset image num to 1 when not given #821
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
看官网文档,dall-e-2也是可选。只是对于dall-e-3 模型,n只能传1 |
我这里改了一下直接跳过 azure 渠道 dalle 请求中的这个参数判断。不知道会不会跟你的 PR 冲突。 |
改了一下,现在如果没给值的话直接设置为 1 |
songquanpeng
changed the title
Update relay-image.go 修改了对于dalle3模型请求时,没有设置参数n的情况,使其默认为1
feat: reset image num to 1 when not given
Dec 17, 2023
H0llyW00dzZ
pushed a commit
to H0llyW00dzZ/one-api
that referenced
this pull request
Dec 20, 2023
* Update relay-image.go * fix: reset image num to 1 when not given --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
H0llyW00dzZ
added a commit
to H0llyW00dzZ/one-api
that referenced
this pull request
Dec 20, 2023
* feat: add Google Gemini Pro support (songquanpeng#826) * fest: Add Google Gemini Pro, fix songquanpeng#810 * fest: Add tooling to Gemini; Add OpenAI-like system prompt to Gemini * refactor: removing unused if statement * fest: Add dummy model message for system message in gemini model * chore: update implementation --------- Co-authored-by: JustSong <songquanpeng@foxmail.com> * fix: fix Gemini stream problem * fix: fix xunfei panic error (close songquanpeng#820) * fix: try to return a more meaningful error message (close songquanpeng#817) * feat: reset image num to 1 when not given (songquanpeng#821) * Update relay-image.go * fix: reset image num to 1 when not given --------- Co-authored-by: JustSong <songquanpeng@foxmail.com> * feat: able to set sqlite busy_timeout (songquanpeng#818) * add sqlite busy_timeout=3000 * chore: update impl --------- Co-authored-by: JustSong <songquanpeng@foxmail.com> * feat: update ali relay implementation (songquanpeng#830) * 修改通译千问最新接口:1.删除history参数,改用官方推荐的messages参数 2.整理messages参数顺序,补充必要上下文信息 3.用autogen调试测试通过 * chore: update impl --------- Co-authored-by: JustSong <songquanpeng@foxmail.com> * feat: add condition to validate n value for non-Azure channels (songquanpeng#775) - Add a condition to validate the n value only for non-Azure channels, ensuring it falls within the acceptable range. - Fix Azure compatibility * docs: update readme * docs: update readme * fix: fix gemini panic (close songquanpeng#833) * fix: fix max_tokens check --------- Co-authored-by: David Zhuang <i@dz.ax> Co-authored-by: JustSong <songquanpeng@foxmail.com> Co-authored-by: Ghostz <137054651+ye4293@users.noreply.github.com> Co-authored-by: Calcium-Ion <61247483+Calcium-Ion@users.noreply.github.com> Co-authored-by: Oliver Lee <ol_l@msn.cn> Co-authored-by: ShinChven ✨ <shinchven@gmail.com>
dirname
pushed a commit
to dirname/one-api
that referenced
this pull request
Dec 22, 2023
* Update relay-image.go * fix: reset image num to 1 when not given --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
greeeds
pushed a commit
to greeeds/one-api
that referenced
this pull request
Mar 3, 2024
* Update relay-image.go * fix: reset image num to 1 when not given --------- 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close #811
对于官方文档,当没有设置参数n时,会默认为1。有些应用的请求没有默认n=1,会导致报错
我已确认该 PR 已自测通过,相关截图如下: