Select to view content in your preferred language

Create AI Service Connection File - Open AI | Error when create *.ais file

401
4
10-20-2025 03:20 PM
IgnacioYañez
New Contributor

I try to Create AI Service Connection File (Data Management) and use into Classify Objects Using Deep Learning (Image Analyst) using the Vision Language Context-Based Classification Deep Learning Package.

When i try to create the OpenAI connection, the Use the model document says:

To connect directly to OpenAI, set the service_provider to "OpenAI" and provide your OpenAI API key using the api_keyfield. You must also specify the model to use by setting the deployment_name field (e.g., "gpt-4o" or "gpt-4"). The remaining parameters can be left blank when connecting directly to OpenAI, as they are only required when using OpenAI services hosted on Azure.

But, when i try to configure the deployment_name field, appears an error

IgnacioYaez_0-1760998535106.png

Error 004120: Invalid connection parameter. The correct connection parameter for the <value> service provider is <value>".
ArcGIS Pro 3.5
 
Description

An incorrect connection parameter was provided for a specific service provider.

Solution

Verify the correct connection parameter for the specified service provider and update it accordingly.

Wht'a the correct way to create an OpenAI Connection?

 

Thanks! 

4 Replies
Muhammad_Elbagoury
Regular Contributor

Hi @IgnacioYañez ,

I just tested the Create AI Service Connection File tool with OpenAI, and it worked correctly when I set the connection parameter as follows:

Key: Model
Value: gpt-4o

 

After creating the connection file this way, it was successfully recognized by the Vision Language Context-Based Classification package in ArcGIS Pro.

Hope this helps!

Screenshot (78).png

 

0 Kudos
IgnacioYañez
New Contributor

Thanks for your help Muhammad. I already have the connection file!

Saddly the geoprocessing don't work for me 😪

IgnacioYaez_0-1762439403011.png

 

Can you share me how you can use the model?

 

Muhammad_Elbagoury
Regular Contributor

Your are welcome.
I’m actually facing this strange scenario too — the tool runs, but the output shows ClassLabel and Reason fields with unknown values.
I’m still investigating why this happens and will update once I figure out the cause.

Muhammad_Elbagoury
Regular Contributor

Hello again,
I just want to follow up if you were able to have your results after the new update released.
I resolved it but just checking that with you.

Regards