Prefix of "v1" is always added in my open AI URL

Post here questions and problems related to bundled or custom AI actions, connectors and in general configuring and working with the AI Positron Assistant add-ons.
hongyung
Posts: 13
Joined: Thu Mar 20, 2014 5:10 pm

Prefix of "v1" is always added in my open AI URL

Post by hongyung »

Hi,
I would like to verify if we can remove the prefix of "/v1" of the openAI connection that added to the URL.
e.g, my on prem AI api is expecting API call of https://myai/chat/completions without any api versioning prefix.
I have configured the open AI address in the plugin Preference to "https://myai"
but the AI positron plugin always add the "/v1" which becomes https://myai/v1/chat/completions.
my on prem returned http 404 when AI positron posted with URL https://myai/v1/chat/completions
Radu
Posts: 9470
Joined: Fri Jul 09, 2004 5:18 pm

Re: Prefix of "v1" is always added in my open AI URL

Post by Radu »

Hi,

You need to obey exactly the API end point specification and use "/v1/chat/completions".
https://platform.openai.com/docs/api-re ... hat/create

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply