Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Contracts/Resources/VectorStoresFilesContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ public function list(string $vectorStoreId, array $parameters = []): VectorStore
*/
public function retrieve(string $vectorStoreId, string $fileId): VectorStoreFileResponse;

/**
* Update attributes on a vector store file.
*
* @see https://platform.openai.com/docs/api-reference/vector-stores-files/updateAttributes
*
* @param array<string, mixed> $parameters
*/
public function updateAttributes(string $vectorStoreId, string $fileId, array $parameters): VectorStoreFileResponse;

/**
* Delete a file within a vector store.
*
Expand Down
5 changes: 5 additions & 0 deletions src/Testing/Resources/VectorStoresFilesTestResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public function create(string $vectorStoreId, array $parameters): VectorStoreFil
return $this->record(__FUNCTION__, func_get_args());
}

public function updateAttributes(string $vectorStoreId, string $fileId, array $parameters): VectorStoreFileResponse
{
return $this->record(__FUNCTION__, func_get_args());
}

public function list(string $vectorStoreId, array $parameters = []): VectorStoreFileListResponse
{
return $this->record(__FUNCTION__, func_get_args());
Expand Down