zilliztech / GPTCache

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

Handle openai change of api base for just embeddings #495

Closed keeganmccallum closed 1 year ago

sre-ci-robot commented 1 year ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: keeganmccallum To complete the pull request process, please assign simfg after the PR has been reviewed. You can assign the PR to them by writing /assign @simfg in a comment when ready.

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

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/zilliztech/GPTCache/blob/main/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
sre-ci-robot commented 1 year ago

Welcome @keeganmccallum! It looks like this is your first PR to zilliztech/GPTCache 🎉

SimFG commented 1 year ago

@keeganmccallum thank your pr, please make the dev as the target branch

codecov[bot] commented 1 year ago

Codecov Report

Merging #495 (071408c) into dev (a3328f2) will decrease coverage by 0.02%. The diff coverage is 85.71%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/zilliztech/GPTCache/pull/495/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/495?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) ```diff @@ Coverage Diff @@ ## dev #495 +/- ## ========================================== - Coverage 94.20% 94.18% -0.02% ========================================== Files 94 94 Lines 3898 3903 +5 ========================================== + Hits 3672 3676 +4 - Misses 226 227 +1 ``` | [Files Changed](https://app.codecov.io/gh/zilliztech/GPTCache/pull/495?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech) | Coverage Δ | | |---|---|---| | [gptcache/embedding/openai.py](https://app.codecov.io/gh/zilliztech/GPTCache/pull/495?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zilliztech#diff-Z3B0Y2FjaGUvZW1iZWRkaW5nL29wZW5haS5weQ==) | `94.11% <85.71%> (-2.44%)` | :arrow_down: |