cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Not able to invoke model external model

Himali_K
New Contributor II

I have followed below steps

1) Created serving end point by for external model gpt-4-turbo and providing azure AI endpoint and key

2) Now using langchain,  i am trying to connect and invoke message from model in notebook 

model = ChatDatabricks(target_uri="databricks", endpoint="test", temperature=0.99)
response = model.invoke(messages)

But getting error as
HTTPError: 500 Server Error: Received error from openai for url: https://{test}-c2.azuredatabricks.net/serving-endpoints/testpocC/invocations.

Any other setting is required ? or any code issue 

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Himali_K, looks like it is a configuration or request issue. Check that the endpoint URL is correctly formatted and accessible, ensure the API key and permissions are correctly set, verify the ChatDatabricks model configuration, and make sure there are no network or firewall issues. Review logs for detailed error messages and confirm that the langchain library is properly installed and configured. 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group