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

assistant run polling endless #1407

Closed
1 task done
anyerqi opened this issue May 10, 2024 · 3 comments
Closed
1 task done

assistant run polling endless #1407

anyerqi opened this issue May 10, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@anyerqi
Copy link

anyerqi commented May 10, 2024

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

client.beta.threads.runs.create_and_poll will run endless, when the status of run is imcomplete

the unnormal run info:

{
    "id": "run_t7khKpQ2vvQJAnO3mJcRa47Y",
    "object": "thread.run",
    "created_at": 1715252643,
    "assistant_id": "asst_7HoUHfUXf8KPJQaetjN5suKP",
    "thread_id": "thread_9JfoNfFWttmyx9GSHVi6T9Gd",
    "status": "incomplete",
    "started_at": 1715252644,
    "expires_at": null,
    "cancelled_at": null,
    "failed_at": null,
    "completed_at": 1715252648,
    "required_action": null,
    "last_error": null,
    ......
    "max_completion_tokens": null,
    "max_prompt_tokens": null,
    "truncation_strategy": {
        "type": "auto",
        "last_messages": null
    },
    "incomplete_details": {
        "reason": "max_prompt_tokens"
    },
}

To Reproduce

  1. use file search tools: tools=[{"type": "file_search"}]
  2. trigger the limitation of max_prompt_tokens

Code snippets

No response

OS

ubuntu

Python version

Python 3.10.12

Library version

openai v1.26.0

@anyerqi anyerqi added the bug Something isn't working label May 10, 2024
@rattrayalex
Copy link
Collaborator

Sorry to hear you're having troubles!

This sounds like an issue with the underlying OpenAI API and not the Python library, so I'm going to go ahead and close this issue.

Would you mind reposting at community.openai.com?

@rattrayalex rattrayalex closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2024
@nknj
Copy link
Member

nknj commented May 13, 2024

Good catch and thanks for reporting -- we'll fix this in the next SDK version very soon. 🙏

@nknj
Copy link
Member

nknj commented May 14, 2024

This has been fixed in the latest SDK version!

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

3 participants