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

XFEstudio/gpt4free

fix error (#3265)

fix error

d76e56a6
Ammar <ammar.alkotb@gmail.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/needs_auth/OpenaiChat.py +1 -1
@@ -162,7 +162,7 @@ class OpenaiChat(AsyncAuthedProvider, ProviderModelMixin):
162 162 hasher.update(data_bytes)
163 163 image_hash = hasher.hexdigest()
164 164 cache_file = ImagesCache.get(image_hash)
165 if cls.image_cache and file:
165 if cls.image_cache and cache_file:
166 166 debug.log("Using cached image")
167 167 return ImageRequest(cache_file)
168 168 extension, mime_type = detect_file_type(data_bytes)