OpenAIEmbeddings initialize, "engine" is not automatically set to the value of "model" #30155
Open
5 tasks done
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
from langchain_openai import OpenAIEmbeddings
embeddings = OpenAIEmbeddings(
model="BAAI/bge-m3",
openai_api_base="http://127.0.0.1/v1/",
openai_api_key="KFC-crazy-thursday",
# deployment="BAAI/bge-m3",
)
Error Message and Stack Trace (if applicable)
When setting model to 'BAAI/bge-m3', deployment incorrectly retains default 'text-embedding-ada-002'
Description
When setting model to 'BAAI/bge-m3', deployment incorrectly retains default 'text-embedding-ada-002'
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
The text was updated successfully, but these errors were encountered: