mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-24 13:07:53 +08:00
Update OpenaiChat.py
fix error
This commit is contained in:
@@ -162,7 +162,7 @@ class OpenaiChat(AsyncAuthedProvider, ProviderModelMixin):
|
||||
hasher.update(data_bytes)
|
||||
image_hash = hasher.hexdigest()
|
||||
cache_file = ImagesCache.get(image_hash)
|
||||
if cls.image_cache and file:
|
||||
if cls.image_cache and cache_file:
|
||||
debug.log("Using cached image")
|
||||
return ImageRequest(cache_file)
|
||||
extension, mime_type = detect_file_type(data_bytes)
|
||||
|
||||
Reference in New Issue
Block a user