fix(google): narrow veo api key for uri download · openclaw/openclaw@5e0cca5
steipete
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -244,6 +244,7 @@ export function buildGoogleVideoGenerationProvider(): VideoGenerationProvider {
|
244 | 244 | if (!auth.apiKey) { |
245 | 245 | throw new Error("Google API key missing"); |
246 | 246 | } |
| 247 | +const apiKey = auth.apiKey; |
247 | 248 | |
248 | 249 | const configuredBaseUrl = resolveConfiguredGoogleVideoBaseUrl(req); |
249 | 250 | const durationSeconds = resolveDurationSeconds(req.durationSeconds); |
@@ -252,7 +253,7 @@ export function buildGoogleVideoGenerationProvider(): VideoGenerationProvider {
|
252 | 253 | label: "Google video generation", |
253 | 254 | }); |
254 | 255 | const client = createGoogleGenAI({ |
255 | | -apiKey: auth.apiKey, |
| 256 | + apiKey, |
256 | 257 | httpOptions: { |
257 | 258 | ...(configuredBaseUrl ? { baseUrl: configuredBaseUrl } : {}), |
258 | 259 | timeout: resolveProviderOperationTimeoutMs({ |
@@ -305,7 +306,7 @@ export function buildGoogleVideoGenerationProvider(): VideoGenerationProvider {
|
305 | 306 | } |
306 | 307 | const directDownload = await downloadGeneratedVideoFromUri({ |
307 | 308 | uri: inline?.uri, |
308 | | -apiKey: auth.apiKey, |
| 309 | + apiKey, |
309 | 310 | configuredBaseUrl, |
310 | 311 | mimeType: inline?.mimeType, |
311 | 312 | index, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。