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

Fix the langchain chat pydantic bug #538

Closed SimFG closed 10 months ago

SimFG commented 10 months ago

https://github.com/zilliztech/GPTCache/issues/525

sre-ci-robot commented 10 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SimFG

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/zilliztech/GPTCache/blob/dev/OWNERS)~~ [SimFG] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
codecov[bot] commented 10 months ago

Codecov Report

Merging #538 (18dae36) into dev (f9456aa) will decrease coverage by 0.99%. Report is 2 commits behind head on dev. The diff coverage is 83.95%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538/graphs/tree.svg?width=650&height=150&src=pr&token=E30WxqBeJJ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech)](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) ```diff @@ Coverage Diff @@ ## dev #538 +/- ## ========================================== - Coverage 93.90% 92.91% -0.99% ========================================== Files 96 97 +1 Lines 4017 4249 +232 ========================================== + Hits 3772 3948 +176 - Misses 245 301 +56 ``` | [Files Changed](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) | Coverage Δ | | |---|---|---| | [gptcache/adapter/adapter.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvYWRhcHRlci9hZGFwdGVyLnB5) | `82.74% <ø> (-5.31%)` | :arrow_down: | | [gptcache/manager/scalar\_data/manager.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvbWFuYWdlci9zY2FsYXJfZGF0YS9tYW5hZ2VyLnB5) | `85.18% <33.33%> (-6.49%)` | :arrow_down: | | [gptcache/adapter/openai.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvYWRhcHRlci9vcGVuYWkucHk=) | `81.57% <41.66%> (-13.05%)` | :arrow_down: | | [gptcache/manager/scalar\_data/dynamo\_storage.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvbWFuYWdlci9zY2FsYXJfZGF0YS9keW5hbW9fc3RvcmFnZS5weQ==) | `95.16% <95.16%> (ø)` | | | [gptcache/adapter/langchain\_models.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvYWRhcHRlci9sYW5nY2hhaW5fbW9kZWxzLnB5) | `95.29% <100.00%> (+0.05%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/zilliztech/GPTCache/pull/538/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech)