Error Encountered with gpt-4-turbo Model When Uploading Images for Dialogue Interaction #3354

Closed
opened 2026-02-21 17:56:47 -05:00 by yindo · 0 comments
Owner

Originally created by @shelltea on GitHub (May 15, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.8

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Navigate to the studio configuration page where the gpt-4-turbo model is set up.
  2. Upload an image to the model input section.
  3. Initiate a dialogue session with the model after uploading the image.
  4. Observe the error message generated by the system.
image

✔️ Expected Behavior

The expected behavior was that the gpt-4-turbo model would process the uploaded image and provide a contextual response based on the image content, without any errors.

Actual Behavior

Instead of processing the image and providing a response, the system generated a 'Bad Request Error' with the following details:

[azure_openai] Bad Request Error, Error code: 400 - {'error': {'message': 'Invalid request body.', 'type': 'invalid_request_error', 'param': None, 'code': None}}

This error indicates a problem with how the request was structured or interpreted by the backend.

Originally created by @shelltea on GitHub (May 15, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.8 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Navigate to the studio configuration page where the gpt-4-turbo model is set up. 2. Upload an image to the model input section. 3. Initiate a dialogue session with the model after uploading the image. 4. Observe the error message generated by the system. <img width="1128" alt="image" src="https://github.com/langgenius/dify/assets/864375/a82166d0-8d7f-4e7e-82d7-fcb89f8621a7"> ### ✔️ Expected Behavior The expected behavior was that the gpt-4-turbo model would process the uploaded image and provide a contextual response based on the image content, without any errors. ### ❌ Actual Behavior Instead of processing the image and providing a response, the system generated a 'Bad Request Error' with the following details: ``` [azure_openai] Bad Request Error, Error code: 400 - {'error': {'message': 'Invalid request body.', 'type': 'invalid_request_error', 'param': None, 'code': None}} ``` This error indicates a problem with how the request was structured or interpreted by the backend.
yindo added the 🐞 bug label 2026-02-21 17:56:47 -05:00
yindo closed this issue 2026-02-21 17:56:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3354