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
a58c98c4
authored
Feb 27, 2026
by
Calcium-Ion
Committed by
GitHub
Feb 27, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3042 from seefs001/fix/video-vertex-fetch
fix: vertex ai video proxy and task polling improvements
parents
e5620561
a33a3eae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
controller/video_proxy_gemini.go
+8
-1
service/task_polling.go
+1
-0
No files found.
controller/video_proxy_gemini.go
View file @
a58c98c4
...
...
@@ -149,7 +149,7 @@ func getVertexVideoURL(channel *model.Channel, task *model.Task) (string, error)
if
channel
==
nil
||
task
==
nil
{
return
""
,
fmt
.
Errorf
(
"invalid channel or task"
)
}
if
url
:=
strings
.
TrimSpace
(
task
.
GetResultURL
());
url
!=
""
{
if
url
:=
strings
.
TrimSpace
(
task
.
GetResultURL
());
url
!=
""
&&
!
isTaskProxyContentURL
(
url
,
task
.
TaskID
)
{
return
url
,
nil
}
if
url
:=
extractVertexVideoURLFromTaskData
(
task
);
url
!=
""
{
...
...
@@ -198,6 +198,13 @@ func getVertexVideoURL(channel *model.Channel, task *model.Task) (string, error)
return
""
,
fmt
.
Errorf
(
"vertex video url not found"
)
}
func
isTaskProxyContentURL
(
url
string
,
taskID
string
)
bool
{
if
strings
.
TrimSpace
(
url
)
==
""
||
strings
.
TrimSpace
(
taskID
)
==
""
{
return
false
}
return
strings
.
Contains
(
url
,
"/v1/videos/"
+
taskID
+
"/content"
)
}
func
getVertexTaskKey
(
channel
*
model
.
Channel
,
task
*
model
.
Task
)
string
{
if
task
!=
nil
{
if
key
:=
strings
.
TrimSpace
(
task
.
PrivateData
.
Key
);
key
!=
""
{
...
...
service/task_polling.go
View file @
a58c98c4
...
...
@@ -421,6 +421,7 @@ func updateVideoSingleTask(ctx context.Context, adaptor TaskPollingAdaptor, ch *
}
if
strings
.
HasPrefix
(
taskResult
.
Url
,
"data:"
)
{
// data: URI (e.g. Vertex base64 encoded video) — keep in Data, not in ResultURL
task
.
PrivateData
.
ResultURL
=
taskcommon
.
BuildProxyURL
(
task
.
TaskID
)
}
else
if
taskResult
.
Url
!=
""
{
// Direct upstream URL (e.g. Kling, Ali, Doubao, etc.)
task
.
PrivateData
.
ResultURL
=
taskResult
.
Url
...
...
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