You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consturl=newURL(endpoint);// Gets all query string valueconstparams=newURLSearchParams(url.search);// Checking if api-version existif(params.has('api-version')){// Getting api-version value and assigning itconstapiVersion=params.get('api-version');console.log(apiVersion);}
I checked the network tab and yes the request doesn't work when using custom azure endpoint, because it appends the whole path to it, making the URL invalid
// according to https://learn.microsoft.com/en-us/azure/ai-services/openai/reference?WT.mc_id=AZ-MVP-5004796constapiVersions=['2022-12-01','2023-03-15-preview','2023-05-15','2023-06-01-preview','2023-07-01-preview','2023-08-01-preview','2023-09-01-preview','2023-10-01-preview','2023-12-01-preview','2024-02-15-preview','2024-03-01-preview','2024-02-01'];
Right now I can not use endpoint with
api-version=2024-02-15-preview
looking athttps://learn.microsoft.com/en-us/azure/ai-services/openai/reference?WT.mc_id=AZ-MVP-5004796
I think the cod might be little bit outdated https://github.com/ztjhz/BetterChatGPT/blob/eb18479a6b32cde25cd61770e8f2cb971418db23/src/api/api.ts#L31C1-L45C1
The text was updated successfully, but these errors were encountered: