-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenAI v1.x.x compatibility to embedding models and api base (#641)
* Fix the nil memory eviction when using the init_similar_cache method Signed-off-by: SimFG <[email protected]> * Update the version to 0.1.44 Signed-off-by: SimFG <[email protected]> * Add OpenAI v1.x.x compatibility to embedding models and api base - Support passing the client as the parameter - In OpenAI v1.x.x, `api_base` has been renamed into `base_url` openai/openai-python#1051 (comment) Signed-off-by: Hollow Man <[email protected]> --------- Signed-off-by: SimFG <[email protected]> Signed-off-by: Hollow Man <[email protected]> Co-authored-by: SimFG <[email protected]>
- Loading branch information
1 parent
a507074
commit 17646e1
Showing
5 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters