🎉 Introduction to new functions of GPTCache
1. Add openai audio adapter (**experimental**)
python
cache.init(pre_embedding_func=get_file_bytes)
openai.Audio.transcribe(
model="whisper-1",
file=audio_file
)
2. Improve data eviction implementation
In the future, users will have greater flexibility to customize eviction methods, such as by using Redis or Memcached. Currently, the default caching library is cachetools, which provides an in-memory cache. Other libraries are not currently supported, but may be added in the future.
What's Changed
* Add openai audio adapter by shiyu22 in https://github.com/zilliztech/GPTCache/pull/220
* Improve data eviction implementation by SimFG in https://github.com/zilliztech/GPTCache/pull/221
* Update the version to `0.1.13` by SimFG in https://github.com/zilliztech/GPTCache/pull/222
**Full Changelog**: https://github.com/zilliztech/GPTCache/compare/0.1.12...0.1.13