Skip to content

init lets you pick deprecated models #7900

Description

@therealjohn

Goal

Do not show models that are deprecated and cannot be provisioned.

Context

  • init shows a list of models based on the region, subscription, available quota, etc.

Current Behavior

Used the azd CLI to create a new project, during initiatlization it asked me to select a model. I CHANGED the default model name (from gpt-4o to gpt-4o-batch) and it scaffolded project.
azd provision failed with Validation Error Details:

InvalidTemplateDeployment: The template deployment 'multiturn-python-dev-1776099424' is not valid according to the validation procedure. The tracking id is '4e2c7a2b-55bf-4aee-8cec-912e831b8aa4'. See inner errors for details.
ServiceModelDeprecating: The model 'Format:OpenAI,Name:gpt-4o,Version:2024-05-13' is in deprecating state and cannot be used for new deployments.

Desired Behavior

Do not show deprecated models or versions of the models in the list of selectable options.

Acceptance Criteria

  • Unit tests added or updated
  • Existing test suite passes
  • Lint or format passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    ext-agentsazure.ai.agents extension

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions