T
Typebot9mo ago
Peach

Does openai Assistant support using file_search

I want to support the use of file_search and specify file_id when calling openai Assistant. I have read all the development documents but cannot find the answer. Is there any plan to support this capability?
5 Replies
Baptiste
Baptiste9mo ago
What's file_search?
Peach
PeachOP9mo ago
I want to upload a file when calling OpenAI Assistant, and pass the successfully uploaded file_id to the parameter. It can support the following request parameters, and can specify file_id and tools' file_search curl https://api.openai.com/v1/threads \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -H "OpenAI-Beta: assistants=v2" \ -d '{ "messages": [ { "role": "user", "content": "Create 3 data visualizations based on the trends in this file.", "attachments": [ { "file_id": "file-ACq8OjcLQm2eIG0BvRM4z5qX", "tools": [{"type": "file_search"}] } ] } ] }'
Baptiste
Baptiste9mo ago
There is Vision support in theory:
Cristiano
Cristiano8mo ago
I have the same question, but it is possible to define the file in the assistent OpenAI and then use this code to enable the filesearch tool in Typebot, but I don't know where it is possible to create this in the OpenAI Ask assistent block in TypeBot { "assistant_id":"asst_id" "additional_instructions":NULL "tool_choice":{ "type":"file_search" } }

Did you find this page helpful?