Skip to content

When I try to connect my LLM that is deployed on Azure AI studio using AzureMLOnlineEndpoint I get an 404 error. #24793

Closed Answered by dosubot bot
mmentese21 asked this question in Q&A
Discussion options

You must be logged in to vote

@mmentese21 Hello there! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together!

To resolve the 404 error when trying to connect your LLM deployed on Azure AI Studio using AzureMLOnlineEndpoint, ensure that you have correctly set the endpoint_url, endpoint_api_type, and endpoint_api_key. Here is an example of how to set these parameters correctly:

from langchain_community.llms.azureml_endpoint import (
    AzureMLEndpointApiType,
    CustomOpenAIContentFormatter,
    AzureMLOnlineEndpoint,
)

llm = AzureMLOnlineEndpoint(
    endpoint_url="https://<your-endpoint>.<your_region>.inference.ml.azure.com/score",  # Ensure this URL is correct

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mmentese21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant