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
fix: Update Azure OpenAI tutorial to use modern models
- Replace deprecated model selection logic with smart model prioritization
- Add support for gpt-4o-mini as primary model (cost-effective, widely available)
- Include fallback hierarchy: gpt-4o → gpt-35-turbo → gpt-4-turbo → gpt-4
- Improve error messages to show available models when selection fails
- Maintain backward compatibility with existing isGPTModel() filter
This resolves tutorial failures caused by deprecated models (text-davinci-003)
being unavailable since April 2024. The new logic ensures tutorials work
with current Azure OpenAI model offerings.
Fixes: Azure OpenAI tutorial not running due to deprecated models
Copy file name to clipboardExpand all lines: PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cognitiveservices/src/main/java/com/microsoft/azure/toolkit/intellij/cognitiveservices/components/ModelComboBox.java
Copy file name to clipboardExpand all lines: PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cognitiveservices/src/main/java/com/microsoft/azure/toolkit/intellij/cognitiveservices/tasks/CreateCognitiveDeploymentTask.java
.orElseThrow(() -> newAzureToolkitRuntimeException(String.format("GPT model is not supported in service %s, please try with another one.", account.getName())));
0 commit comments