返回提交历史
Modified
g4f/Provider/needs_auth/Video.py
+1
-1
XFEstudio/gpt4free
Fix video api
41bb5d75
代码差异
1 个文件
+1
-1
@@ -65,7 +65,7 @@ class Video(AsyncGeneratorProvider):
65
65
if not response.ok:
66
66
debug.error(f"Failed to connect to Video API: {response.status}")
67
67
else:
68
if response.headers.get("content-type", "text/plain").startswith("text/pain"):
68
if response.headers.get("content-type", "text/plain").startswith("text/plain"):
69
69
data = (await response.text()).split("\n")
70
70
yield VideoResponse([f"{cls.pub_url}{url}" if url.startswith("/") else url for url in data], prompt)
71
71
return