Closed
Description
Description
When I test my assistant in the Playground, it gets my data from my files Vector Stores and can answer all of my questions related to people in my organization. When I ask the same question using my PHP script, it always says it has no info on this person. Does it means that "file_search" is not possible for the moment with the v1 API ?
I know, that's not a bug, more a question, sorry for that!
Steps To Reproduce
In my PHP:
- Create a thread
$response = $client->threads()->create([]);
- Create a message
$response = $client->threads()->messages()->create($threadId,
[
'role' => 'user',
'content' => $obj
]
);
- Run
$response = $client->threads()->runs()->create(
threadId: $threadId,
parameters: [
'assistant_id' => 'asst_xxxxxxxxxx',
],
);
- Retrieve my run
$response = $client->threads()->runs()->retrieve(
threadId: $threadId,
runId: $runId,
);
- get the answer
$response = $client->threads()->messages()->list($threadId, ['limit' => 1,]);
OpenAI PHP Client Version
v.0.8.5
PHP Version
8.1
Notes
Thanks!