I’m facing a problem is AI assistant can’t access the file format pdf and Thai language.
here is my code.
PS. I’m new to this so everyone can tell me what should i do. thank you.
files = client.files.list()
file_id = files.data[0].id
assistants = client.beta.assistants.list(
order="desc",
limit="20",
)
assistant_id = assistants.data[0].id
thread = client.beta.threads.create(
messages=[
{
"role": "user",
"content": "can u tell detail all documents",
}
]
)
run = client.beta.threads.runs.create(
thread_id=thread.id,
assistant_id=assistant_id
)
print('run.id: ' + run.id)
run = client.beta.threads.runs.retrieve(
thread_id=thread.id,
run_id=run.id
)
print('run.status: ' + run.status)
thread_messages = client.beta.threads.messages.list(thread.id)
print(thread_messages)
result
I currently do not have access to the content of the file. Could you please provide me with specific questions or information you are looking for within the document? This way, I can assist you more effectively.