Fix raptor resuable issue. (#4063)

### What problem does this PR solve?

#4045

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Kevin Hu
2024-12-17 15:28:35 +08:00
committed by GitHub
parent 4a95349492
commit fddac1345d
3 changed files with 30 additions and 16 deletions

View File

@ -78,7 +78,7 @@ def get_llm_cache(llmnm, txt, history, genconf):
bin = REDIS_CONN.get(k)
if not bin:
return
return bin.decode("utf-8")
return bin
def set_llm_cache(llmnm, txt, v: str, history, genconf):