GPTCache icon indicating copy to clipboard operation
GPTCache copied to clipboard

[Feature]: Support to store images in cache storage.

Open xiaofan-luan opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

For models working on image generation, we can store the result image in cache storage rather than just text.

TODO: support minio cache storage backend and local disk storage backend

Describe the solution you'd like.

No response

Describe an alternate solution.

No response

Anything else? (Additional Context)

No response

xiaofan-luan avatar Apr 09 '23 23:04 xiaofan-luan

@xiaofan-luan I'll take a stab at this later this week or over this weekend if nobody else beats me to it

fzliu avatar Apr 11 '23 05:04 fzliu

@xiaofan-luan I'll take a stab at this later this week or over this weekend if nobody else beats me to it

@fzliu I suggest using opendal as the access layer for storage. It provides a unified interface to access file systems, memory, S3, etc. Although it is written in Rust, it has bindings for various languages especially Python.

https://github.com/apache/incubator-opendal/blob/main/bindings/python/README.md

jiaoew1991 avatar Apr 14 '23 00:04 jiaoew1991

The latest version of GPTCache have implemented it, pr: #213. So i will close the issue. @jiaoew1991 But we didn't use the opendal as the access layer for storage. If we need to access more object storage in the future, we will consider using it.

SimFG avatar Apr 24 '23 09:04 SimFG