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(experimental): openai assistant attachments #7664

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

zachary-nguyen
Copy link
Contributor

@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
@jacoblee93 jacoblee93 changed the title fix(assistant): openai assistant attachments fix(experimental): openai assistant attachments Feb 11, 2025
@jacoblee93
Copy link
Collaborator

Thank you!

@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label Feb 11, 2025
@jacoblee93 jacoblee93 merged commit 6bb5db8 into langchain-ai:main Feb 11, 2025
29 checks passed
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 lgtm PRs that are ready to be merged as-is 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
2 participants