mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
parent
2e6d417d02
commit
d76e56a66f
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ class OpenaiChat(AsyncAuthedProvider, ProviderModelMixin):
|
||||||
hasher.update(data_bytes)
|
hasher.update(data_bytes)
|
||||||
image_hash = hasher.hexdigest()
|
image_hash = hasher.hexdigest()
|
||||||
cache_file = ImagesCache.get(image_hash)
|
cache_file = ImagesCache.get(image_hash)
|
||||||
if cls.image_cache and file:
|
if cls.image_cache and cache_file:
|
||||||
debug.log("Using cached image")
|
debug.log("Using cached image")
|
||||||
return ImageRequest(cache_file)
|
return ImageRequest(cache_file)
|
||||||
extension, mime_type = detect_file_type(data_bytes)
|
extension, mime_type = detect_file_type(data_bytes)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue