Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3b047b18
authored
Mar 27, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update model ratio
parent
a696cf58
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
setting/operation_setting/model-ratio.go
+3
-2
No files found.
setting/operation_setting/model-ratio.go
View file @
3b047b18
...
@@ -400,10 +400,11 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
...
@@ -400,10 +400,11 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
}
}
return
4
,
true
return
4
,
true
}
}
if
strings
.
HasPrefix
(
name
,
"gpt-4.5"
)
&&
strings
.
HasSuffix
(
name
,
"preview"
)
{
// gpt-4.5-preview匹配
if
strings
.
HasPrefix
(
name
,
"gpt-4.5-preview"
)
{
return
2
,
true
return
2
,
true
}
}
if
strings
.
HasPrefix
(
name
,
"gpt-4-turbo"
)
||
(
strings
.
HasPrefix
(
name
,
"gpt-4-"
)
&&
strings
.
HasSuffix
(
name
,
"preview"
)
)
{
if
strings
.
HasPrefix
(
name
,
"gpt-4-turbo"
)
||
strings
.
HasSuffix
(
name
,
"gpt-4-1106"
)
||
strings
.
HasSuffix
(
name
,
"gpt-4-1105"
)
{
return
3
,
true
return
3
,
true
}
}
// 没有特殊标记的 gpt-4 模型默认倍率为 2
// 没有特殊标记的 gpt-4 模型默认倍率为 2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment