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

fix(assistant): openai assistant attachments #7664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zachary-nguyen
Copy link

@zachary-nguyen zachary-nguyen commented Feb 6, 2025

Fixing openai assistants thread run. Parameters to create and run a thread do not match the latest from openai.
This results in a unknown parameter error when trying to provide a file.

See docs:
https://platform.openai.com/docs/api-reference/runs/createThreadAndRun#runs-createthreadandrun-thread

Langchain Docs:
https://js.langchain.com/v0.1/docs/modules/agents/agent_types/openai_assistant/#use-file-in-ai-assistant

Fixes # (issue)

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 6, 2025
Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Feb 6, 2025 7:28pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Feb 6, 2025 7:28pm

@dosubot dosubot bot added the auto:bug Related to a bug, vulnerability, unexpected error with an existing feature label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAI Assistant can't run with a file
1 participant