Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix revised_prompt parameter name so it will be correctly deserialized. #197

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ernop
Copy link

@ernop ernop commented Feb 21, 2024

The OpenAI image generation endpoint returns a field called revised_prompt. When you submit a prompt for image generation, before sending it to Dalle3, GPT revises it. This field contains the actual text that Dalle3 used.

As of now, this C# API does not correctly deserialize this field because there is no JsonProperty to match the names in the Response model.

This pull request is a one-line fix. I've tested it and it works locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant