Skip to content

🐛 [BUG] - AzureOpenAIOptions doesn't allow to set ServiceVersion as a string value #175

@AndresSanchezEncamina

Description

@AndresSanchezEncamina

Description

It is not possible to set the "ServiceVersion" configuration property on the AzureOpenAIOptions using a string value. To set this property the only current available option is to use he indexes of the "ServiceVersion" enumerate.

Reproduction steps

1. Go to 'The app settings of the application'.
2. Set the 'ServiceVersion' as a string.
3. Start the aplication.
4. See error:

System.InvalidOperationException: 'Failed to convert configuration value at 'AzureOpenAIOptions:ServiceVersion' to type 'Azure.AI.OpenAI.AzureOpenAIClientOptions+ServiceVersion'.'

Reproduction URL

No response

Screenshots

![DESCRIPTION](LINK.png)

Logs

Browsers

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions