generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: support gpt-4o mini #1665
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
总之改动了一下图片计算token的函数避免错误消耗非流模式下的token,希望帮忙review。也请使用该模型的朋友注意一下这个特殊的模型计算方法。 |
WqyJh
reviewed
Jul 19, 2024
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1665 +/- ##
========================================
- Coverage 1.29% 1.29% -0.01%
========================================
Files 142 142
Lines 10070 10076 +6
========================================
Hits 130 130
- Misses 9926 9932 +6
Partials 14 14 ☔ View full report in Codecov by Sentry. |
Laisky
approved these changes
Jul 22, 2024
songquanpeng
approved these changes
Jul 22, 2024
mxdlzg
pushed a commit
to mxdlzg/one-api
that referenced
this pull request
Oct 15, 2024
* feat: support gpt-4o mini * feat: fix gpt-4o mini image price
SheldonLiu0412
pushed a commit
to SheldonLiu0412/one-api
that referenced
this pull request
Jan 23, 2025
* feat: support gpt-4o mini * feat: fix gpt-4o mini image price
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.
resolve issue: #1664
ps: 有一个小坑, 4o mini 识图模型的tile价格对标 4o,为mini的token价格的33倍。因此我修改了图片token计算方式
ref: additionalCost
我已确认该 PR 已自测通过,相关截图如下:
(此处放上测试通过的截图,如果不涉及前端改动或从 UI 上无法看出,请放终端启动成功的截图)