mirror of
https://github.com/TheSmallHanCat/sora2api.git
synced 2026-02-22 09:04:41 +08:00
Merge pull request #57 from genz27/main
feat:调整剩余次数获取和视频生成请求UA,estimated_num_videos_remaining返回30
This commit is contained in:
@@ -284,7 +284,8 @@ class SoraClient:
|
|||||||
proxy_url = await self.proxy_manager.get_proxy_url(token_id)
|
proxy_url = await self.proxy_manager.get_proxy_url(token_id)
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": f"Bearer {token}"
|
"Authorization": f"Bearer {token}",
|
||||||
|
"User-Agent" : "Sora/1.2026.007 (Android 15; 24122RKC7C; build 2600700)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# 只在生成请求时添加 sentinel token
|
# 只在生成请求时添加 sentinel token
|
||||||
|
|||||||
@@ -289,7 +289,8 @@ class TokenManager:
|
|||||||
async with AsyncSession() as session:
|
async with AsyncSession() as session:
|
||||||
headers = {
|
headers = {
|
||||||
"Authorization": f"Bearer {access_token}",
|
"Authorization": f"Bearer {access_token}",
|
||||||
"Accept": "application/json"
|
"Accept": "application/json",
|
||||||
|
"User-Agent" : "Sora/1.2026.007 (Android 15; 24122RKC7C; build 2600700)"
|
||||||
}
|
}
|
||||||
|
|
||||||
kwargs = {
|
kwargs = {
|
||||||
|
|||||||
Reference in New Issue
Block a user