XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Fix video api

41bb5d75
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/needs_auth/Video.py +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