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

Allow content arrays for multimodal OpenAI requests #5277

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

Cohee1207
Copy link
Contributor

This patch will allow sending prompts to chat completions endpoint formatted according to OpenAI vision guide. If message content contains a list with text and image parts, it will be converted to the format expected by the multimodal extension (two user messages).

Without this change, the following exception will be thrown if the message contents include a list:

image

Checklist:

@oobabooga
Copy link
Owner

Thanks for the fix @Cohee1207, I wasn't aware of this.

@oobabooga oobabooga merged commit fbf8ae3 into oobabooga:dev Jan 22, 2024
PoetOnTheRun pushed a commit to PoetOnTheRun/text-generation-webui that referenced this pull request Feb 22, 2024
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.

2 participants