Open canonhui opened 2 months ago
It looks like this, it seems that we need to modify the openai embedding interface. The embedding of this part is very simple, you can try to implement an embedding function for gptcache yourself
OK, i'll try. Thanks for your reply
I wanted to use openai's
text-embedding-3-small
model to generate embeddings, following is my test code:however, this code got me the following exception:
I guess it's an issue about openai's version? because i tested the embedding api using the same
api_key
andapi_base
in another python environment with openai's version of 1.10.0, and it returned me the right embedding. Here is the code: