mirror of
https://github.com/langchain-ai/agent-chat-ui.git
synced 2026-07-21 03:15:23 -04:00
[PR #151] Fix: Image Format not accepted by OpenAI #185
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/agent-chat-ui/pull/151
Author: @ASchwad
Created: 7/4/2025
Status: 🔄 Open
Base:
main← Head:alex/fix-openai-file-format📝 Commits (3)
dcca810Adjust type3120b29Adjust Image Preview807576aRemove duplicated UI code📊 Changes
3 files changed (+78 additions, -32 deletions)
View changed files
📝
src/components/thread/MultimodalPreview.tsx(+12 -8)📝
src/hooks/use-file-upload.tsx(+29 -15)📝
src/lib/multimodal-utils.ts(+37 -9)📄 Description
https://stackoverflow.com/questions/78395237/query-azure-openai-with-images
OpenAI APIs require the image_url format for vision capabilities, e.g.:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.