Skip to content

Missing TTS contract field. Please advise workaround and fix #411

Open
@asyrovprog

Description

@asyrovprog

Service

OpenAI

Describe the bug

Can anyone kindly advise a way to extend (Azure) OpenAI requests with new (missing) fields, while waiting for library updates?

Example is AudioClient.GenerateSpeechAsync, where SpeechGenerationOptions is missing instructions field.

This field is documented at https://platform.openai.com/docs/guides/text-to-speech (see instructions="Speak in a cheerful and positive tone."), while is not present in C# OpenAI library here: https://github.com/openai/openai-dotnet/blob/main/src/Custom/Audio/SpeechGenerationOptions.cs.

Anything helps!

Side note: Microsoft Azure OpenAI derivative library has a special InternalsVisibleTo Include="Azure.AI.OpenAI" preference. Should OpenAI reconsider it? If something needs to be visible, why just Microsoft?

Steps to reproduce

Look at provided references to sources

Code snippets

OS

WinOS

.NET version

any

Library version

any

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions