#Conversations API — Error while downloading {url}

1 messages · Page 1 of 1 (latest)

compact beaconBOT
#

Reported by @solar ledge

Bug Report: Conversations API — Error while downloading {url}
`Steps to Reproduce`
  1. Create a conversation using the Conversation API
  2. Try to upload an image as an item.

Payload example:

{
    "items": [
        {
            "content": [
                {
                    "type": "input_text",
                    "text": "what's in this image?"
                },
                {
                    "type": "input_image",
                    "image_url": "..."
                }
            ],
            "role": "user"
        }
    ]
}
`Expected Result`

API Returns success and the message is added to the Conversation.

`Actual Result`

An error is thrown with the following description:

{
    "error": {
        "message": "Error while downloading https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg.",
        "type": "invalid_request_error",
        "param": "url",
        "code": "invalid_value"
    }
}
`Environment`

API & JavaScipt SDK 6.7.0

#
Additional Information

Please provide relevant details to help resolve the issue, such as:

  • ChatGPT Shared Link (if applicable).
  • Screenshots or videos demonstrating the problem.

-# ➜ Need to contact support? Visit the OpenAI Help Center.