You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a very descriptive title to this question.
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
Commit to Help
I commit to help with one of those options 👆
Example Code
import{OpenAIAssistantRunnable}from"langchain/experimental/openai_assistant";constalice=awaitOpenAIAssistantRunnable.createAssistant({model: "gpt-4o",instructions:
`you are a assistant`,name: "Test",tools: [{type: 'code_interpreter'},{type: 'file_search'}],fileIds: files,asAgent: true,});
Description
I tried to use openai assistant with gpt-4o but I got an error from openai
The requested model 'gpt-4o' cannot be used with the Assistants API in v1. Follow the migration guide to upgrade to v2: https://platform.openai.com/docs/assistants/migration
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked other resources
Commit to Help
Example Code
Description
And I know Python langchain already has OpenAIAssistantV2Runnable.
https://api.python.langchain.com/en/latest/agents/langchain.agents.openai_assistant.base_v2.OpenAIAssistantV2Runnable.html
do we have v2 assistant?
System Info
platform mac
node v20.13.0
yarn 1.22.19
Beta Was this translation helpful? Give feedback.
All reactions