Permission denied error while using gpt-3.5-turbo-instruct for OpenAI embeddings

Hi All,

I am getting “PermissionError: You are not allowed to generate embeddings from this model” when using - model=“gpt-3.5-turbo-instruct” in creating OpenAIembeddings for doc answer retrieval use-case.
Earlier it was working fine with text-davinci-003 model before not it is deprecated.
Can someone please help?

2 Likes

embeddings = OpenAIEmbeddings(model=“gpt-3.5-turbo”)
document_search = Chroma.from_texts(texts, embeddings)
Error code: 403 - {‘error’: {‘message’: ‘You are not allowed to generate embeddings from this model’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}
Earlier it was working fine with text-davinci-003 model before not it is deprecated.