Assistant ID and Thread ID OpenAI in Langchain? #22214
Closed
murilofray
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the pure OpenAI API, I can configure the assistant ID and the thread ID, which is the ID of the chat I am conversing with, and it already saves the conversation history:
client.beta.threads.messages.create(
thread_id=thread,
role="user",
content=message
run = client.beta.threads.runs.create_and_poll(
thread_id=thread,
assistant_id="id"
)
I would like to know if I can do this with Langchain.
Beta Was this translation helpful? Give feedback.
All reactions