AzureAIDocumentIntelligenceLoader is calling the wrong endpoint and we can't change anything #28666
Open
5 tasks done
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
The problem here is that my documentintelligence resource is of type FormRecognizer. I have double checked that in AI studio, the api key and endpoint work perfectly fine (see image below).
But the problem is that langchain by default calls the documentintelligence endpoint even though you pass the url explicitly:
https://amirrahnamadisweden.cognitiveservices.azure.com:443 "POST /documentintelligence/documentModels/prebuilt-layout:analyze?api-version=2023-07-31&outputContentFormat=markdown
System Info
The text was updated successfully, but these errors were encountered: