Skip to content

Additional properties from OpenAI-compatible response are needed but not exposed #259

Open
@stephentoub

Description

@stephentoub

Service

OpenAI

Describe the bug

<InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' != 'Unsigned'">
<PublicKey>0024000004800000940000000602000000240000525341310004000001000100097ad52abbeaa2e1a1982747cc0106534f65cfea6707eaed696a3a63daea80de2512746801a7e47f88e7781e71af960d89ba2e25561f70b0e2dbc93319e0af1961a719ccf5a4d28709b2b57a5d29b7c09dc8d269a490ebe2651c4b6e6738c27c5fb2c02469fe9757f0a3479ac310d6588a50a28d7dd431b907fd325e18b9e8ed</PublicKey>
</InternalsVisibleTo>
<InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' == 'Unsigned'" />

The OpenAI library is tracking all received properties and storing them into a SerializedAdditionalRawData dictionary. It doesn't publicly expose this data, except via InternalsVisibleTo to Azure.AI.OpenAI.

Why is Azure.AI.OpenAI special here, such that this data is only available to that specific library?

Steps to reproduce

Try to access additional properties sent down as part of an OpenAI-compatible response. You can't.

Code snippets

No response

OS

Any

.NET version

Any

Library version

2.1.0-beta

Metadata

Metadata

Assignees

Labels

feature-requestCategory: A new feature or enhancement to an existing feature is being requested.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions