fix(fam-edge): 上传端点与签名修正 - Gemini 上传改用 /upload/v1beta/files 端点(原 /v1beta/files 非上传端点);NVIDIA PUT 用全小写 content-type 头(S3 预签名校验)
This commit is contained in:
@@ -106,7 +106,9 @@ class NvidiaVisionAdapter(BaseModelAdapter):
|
||||
up = requests.put(
|
||||
upload_url,
|
||||
data=f,
|
||||
headers={"Content-Type": "application/octet-stream"},
|
||||
# 注意:必须用小写 header 名,预签名 S3 URL 的签名覆盖小写 content-type
|
||||
headers={"content-type": "application/octet-stream",
|
||||
"x-amz-meta-nvcf-asset-description": "fam-edge video asset"},
|
||||
timeout=upload_timeout,
|
||||
)
|
||||
except requests.Timeout:
|
||||
|
||||
Reference in New Issue
Block a user