Error "Sorry, something went wrong" in run result when launching in a thread that contains messages with images. Assistant with functions

Model: chatgpt-4o

I receive the error ‘Sorry, something went wrong.’ when trying to run in a thread with messages that contain images while there are connected functions in the assistant.

This assistant works correctly until an image is sent in the thread. After sending, I start receiving the error ‘Sorry, something went wrong’ on any run execution.

If the functions are removed from the assistant (in the configuration), functionality is restored. The assistant works correctly with messages containing images."

Tried switching to different models. It doesn’t help.

Assistant model:

OpenAI\Responses\Assistants\AssistantResponse {#647
  +id: "asst_xzOnVDQPncSjGAcVadiWlPTb"
  +object: "assistant"
  +createdAt: 1739263272
  +name: "Test assistant"
  +description: null
  +model: "gpt-4o"
  +instructions: ""
  +tools: array:2 [
    0 => OpenAI\Responses\Assistants\AssistantResponseToolFileSearch {#653
      +type: "file_search"
    }
    1 => OpenAI\Responses\Assistants\AssistantResponseToolFunction {#648
      +type: "function"
      +function: OpenAI\Responses\Assistants\AssistantResponseToolFunctionFunction {#644
        +description: "Determine weather in my location"
        +name: "get_weather"
        +parameters: array:4 [
          "type" => "object"
          "properties" => array:2 [
            "location" => array:2 [
              "type" => "string"
              "description" => "The city and state e.g. San Francisco, CA"
            ]
            "unit" => array:2 [
              "type" => "string"
              "enum" => array:2 [
                0 => "c"
                1 => "f"
              ]
            ]
          ]
          "additionalProperties" => false
          "required" => array:2 [
            0 => "location"
            1 => "unit"
          ]
        ]
      }
    }
  ]
  +toolResources: OpenAI\Responses\Assistants\AssistantResponseToolResources {#652
    +codeInterpreter: null
    +fileSearch: OpenAI\Responses\Assistants\AssistantResponseToolResourceFileSearch {#655
      +vectorStoreIds: []
    }
  }
  +metadata: []
  +temperature: 1.0
  +topP: 1.0
  +responseFormat: OpenAI\Responses\Assistants\AssistantResponseResponseFormat {#657
    +type: "text"
  }
  -meta: OpenAI\Responses\Meta\MetaInformation {#654
    +requestId: "req_fe9187dba581ffd64538e7926855e21d"
    +openai: OpenAI\Responses\Meta\MetaInformationOpenAI {#643
      +model: null
      +organization: "mkomov"
      +version: "2020-10-01"
      +processingMs: 212
    }
    +requestLimit: null
    +tokenLimit: null
  }
} 
1 Like

I just created a new topic for this as well. Seems like it has to do with some conflict with the function calls as it works for me the moment i remove all my functions from my assistant.

2 Likes

Same problem for me since this morning, My assistant is specialized for Vision (I can’t remove my functions as it is his only role) so my all product is now shut down…

1 Like

Same problem today but with “response_format” “type”: “json_schema”.
“code”: “server_error”, “message”: “Sorry, something went wrong.”
If I remove it - run works. But I can’t remove it.

2 Likes

Does it works again for you ? I still have the problem on my side…

1 Like

Issue has been fixed.
If you are still running into issues, please post into the topic linked below.

3 Likes