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
41ea9388
authored
Sep 29, 2025
by
Seefs
Committed by
GitHub
Sep 29, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1913 from RedwindA/fix/deepseek-ratio
解锁deepseek补全倍率;允许deepseek渠道获取模型
parents
6ca88d16
71b3c90b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
+1
-4
setting/ratio_setting/model_ratio.go
+0
-4
web/src/components/table/channels/modals/EditChannelModal.jsx
+1
-0
No files found.
setting/ratio_setting/model_ratio.go
View file @
41ea9388
...
@@ -501,7 +501,6 @@ func GetCompletionRatio(name string) float64 {
...
@@ -501,7 +501,6 @@ func GetCompletionRatio(name string) float64 {
}
}
func
getHardcodedCompletionModelRatio
(
name
string
)
(
float64
,
bool
)
{
func
getHardcodedCompletionModelRatio
(
name
string
)
(
float64
,
bool
)
{
lowercaseName
:=
strings
.
ToLower
(
name
)
isReservedModel
:=
strings
.
HasSuffix
(
name
,
"-all"
)
||
strings
.
HasSuffix
(
name
,
"-gizmo-*"
)
isReservedModel
:=
strings
.
HasSuffix
(
name
,
"-all"
)
||
strings
.
HasSuffix
(
name
,
"-gizmo-*"
)
if
isReservedModel
{
if
isReservedModel
{
...
@@ -594,9 +593,6 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
...
@@ -594,9 +593,6 @@ func getHardcodedCompletionModelRatio(name string) (float64, bool) {
}
}
}
}
// hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐
// hint 只给官方上4倍率,由于开源模型供应商自行定价,不对其进行补全倍率进行强制对齐
if
lowercaseName
==
"deepseek-chat"
||
lowercaseName
==
"deepseek-reasoner"
{
return
4
,
true
}
if
strings
.
HasPrefix
(
name
,
"ERNIE-Speed-"
)
{
if
strings
.
HasPrefix
(
name
,
"ERNIE-Speed-"
)
{
return
2
,
true
return
2
,
true
}
else
if
strings
.
HasPrefix
(
name
,
"ERNIE-Lite-"
)
{
}
else
if
strings
.
HasPrefix
(
name
,
"ERNIE-Lite-"
)
{
...
...
web/src/components/table/channels/modals/EditChannelModal.jsx
View file @
41ea9388
...
@@ -103,6 +103,7 @@ const MODEL_FETCHABLE_TYPES = new Set([
...
@@ -103,6 +103,7 @@ const MODEL_FETCHABLE_TYPES = new Set([
40
,
40
,
42
,
42
,
48
,
48
,
43
,
]);
]);
function
type2secretPrompt
(
type
)
{
function
type2secretPrompt
(
type
)
{
...
...
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