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

Run failed Sorry, something went wrong when run a thread with a image_url #1090

Open
1 task done
agrass opened this issue Sep 20, 2024 · 3 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@agrass
Copy link

agrass commented Sep 20, 2024

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

I’m encountering this same error "Run failed Sorry, something went wrong." when trying to send a URL image using GPT-4o. Despite trying various solutions, I keep receiving the error message “Sorry, something went wrong” and I’m not sure what the issue is. Has anyone else experienced this with assistant v2 and sending url images and found a solution?

To Reproduce

  1. Create and run thread sending an image url and a text

Code snippets

const run = await openai.beta.threads.createAndRun({
        assistant_id: "assistant_id",
        thread: {
          messages: [
            { "role": "user",
            "content":[
             {
                 "type":"text",
                 "text":"help me convert this image to json"
                 },
              {
             "type":"image_url",
             "image_url":{
             "url": imageUrl
             }}]}],
        },
      });


### OS

macOS

### Node version

node 18

### Library version

4.62.1
@agrass agrass added the bug Something isn't working label Sep 20, 2024
@RobertCraigie
Copy link
Collaborator

Could you share a request ID for one of the failing requests? https://github.com/openai/openai-node#request-ids

@agrass
Copy link
Author

agrass commented Sep 20, 2024

yes, it's req_4c4d300a90665746338ea86cb6f332e5

@jejanov
Copy link

jejanov commented Sep 21, 2024

i'm running into a similar issue with an assistant that is trying to do file search. It apears that maybe the context being sent after the vector search is in excess of the limits: over 125k tokens. This is a new issue for me, and hadn't previously been a problem the error being caught in the stream is : thread.run.step.failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants