Skip to content

[file_search]: Do we have to wait for the v2 API to get file_search? #388

@Damien514

Description

@Damien514

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:

  1. Create a thread
    $response = $client->threads()->create([]);
  2. Create a message
$response = $client->threads()->messages()->create($threadId,
	[
		'role' => 'user',
		'content' => $obj
	]
);
  1. Run
$response = $client->threads()->runs()->create(
	threadId: $threadId,
	parameters: [
		'assistant_id' => 'asst_xxxxxxxxxx',
	],
);
  1. Retrieve my run
$response = $client->threads()->runs()->retrieve(
		threadId: $threadId,
		runId: $runId,
	);
  1. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions