mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Improve update script
This commit is contained in:
parent
1c88f71f05
commit
295103f224
4 changed files with 12 additions and 13 deletions
|
|
@ -32,7 +32,7 @@ class RequestConfig:
|
|||
@classmethod
|
||||
async def get_response(cls, prompt: str) -> VideoResponse | None:
|
||||
if prompt in cls.urls and cls.urls[prompt]:
|
||||
unique_list = list(set(cls.urls[prompt]))
|
||||
unique_list = list(set(cls.urls[prompt]))[:10]
|
||||
return VideoResponse(unique_list, prompt, {
|
||||
"headers": {"authorization": cls.headers.get("authorization")} if cls.headers.get("authorization") else {},
|
||||
"preview": [url.replace("md.mp4", "thumb.webp") for url in unique_list]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue