zilliztech / GPTCache

Semantic cache for LLMs. Fully integrated with LangChain and llama_index.
https://gptcache.readthedocs.io
MIT License
6.96k stars 490 forks source link

[Bug]: library name is wrong for redis_om, instead it should be redis-om. #540

Closed KeshavSingh29 closed 10 months ago

KeshavSingh29 commented 10 months ago

Current Behavior

In utils init.py

def import_redis():
    _check_library("redis")
    _check_library("redis_om")

The library name is wrong for redis_om, instead it should be redis-om. Refer: https://github.com/redis/redis-om-python

Which creates error when running gptcache dependent libraries: 2023-09-20T05:39:32.596024342Z stderr F gptcache.utils.error.PipInstallError: Ran into error installing redis_om.

Expected Behavior

Should install redis-om package

Steps To Reproduce

Just install and run the latest code.

Environment

No response

Anything else?

If its okay, i made a quick PR.