Skip to content

Modify ImplicitConversionToBinaryContentVisitor to allow for exception list #863

@christothes

Description

@christothes

We have this [visitor[(https://github.com/openai/openai-dotnet/blob/main/codegen/generator/src/Visitors/ImplicitConversionToBinaryContentVisitor.cs) which removes the generated BinaryContent implicit conversion because it wasn't useful for any of our models:

However, this is definitely useful for our protocol models. Let's modify the visitor so that we can keep a list of types that we can "opt-out" of the visitor, so that this code gets generated instead of having to keep it as custom code.

Metadata

Metadata

Assignees

Labels

area: architectureThis item is related to general architecture of the OpenAI client library.team-work-item

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions