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
225cb9ef
authored
Dec 25, 2025
by
Calcium-Ion
Committed by
GitHub
Dec 25, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2154 from feitianbubu/pr/fix-model-sync
fix: ensure overwrite works correctly when no missing models
parents
90b70f47
5f5ad45d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
controller/model_sync.go
+0
-8
No files found.
controller/model_sync.go
View file @
225cb9ef
...
@@ -260,14 +260,6 @@ func SyncUpstreamModels(c *gin.Context) {
...
@@ -260,14 +260,6 @@ func SyncUpstreamModels(c *gin.Context) {
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
"success"
:
false
,
"message"
:
err
.
Error
()})
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
"success"
:
false
,
"message"
:
err
.
Error
()})
return
return
}
}
if
len
(
missing
)
==
0
{
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
"success"
:
true
,
"data"
:
gin
.
H
{
"created_models"
:
0
,
"created_vendors"
:
0
,
"skipped_models"
:
[]
string
{},
}})
return
}
// 2) 拉取上游 vendors 与 models
// 2) 拉取上游 vendors 与 models
timeoutSec
:=
common
.
GetEnvOrDefault
(
"SYNC_HTTP_TIMEOUT_SECONDS"
,
15
)
timeoutSec
:=
common
.
GetEnvOrDefault
(
"SYNC_HTTP_TIMEOUT_SECONDS"
,
15
)
...
...
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