/engines/:model/embeddings不兼容吗?
Closed this issue · 1 comments
hujb2000 commented
我用langchain包的ChatOpenAI来建文档索引,关键代码段如下:
from langchain.chat_models import ChatOpenAI, AzureChatOpenAI
llm_predictor = LLMPredictor(llm=ChatOpenAI(temperature=0.2, model_name="text-embedding-ada-002"))
在azure-openai-proxy容器服务中捕获以下日志:
[GIN] 2023/08/31 - 03:09:18 | 404 | 549ns | 192.168.160.1 | POST "/engines/text-embedding-ada-002/embeddings"
是这个接口apiBasedRouter.Any("/engines/:model/embeddings", azure.ProxyWithConverter(templateConverter))不兼容吗