interface FileProvider implements Provider

Methods

string
name()

Get the name of the underlying AI provider.

from  Provider
string
driver()

Get the name of the underlying AI driver.

from  Provider
array
providerCredentials()

Get the credentials for the underlying AI provider.

from  Provider
array
additionalConfiguration()

Get the provider connection configuration other than the driver, key, and name.

from  Provider
withHeaders(array $headers)

Get a provider instance that sends the given HTTP headers with each request.

from  Provider
getFile(string $fileId)

Get a file by its ID.

putFile(StorableFile $file)

Store the given file.

void
deleteFile(string $fileId)

Delete a file by its ID.

fileGateway()

Get the provider's file gateway.

useFileGateway(FileGateway $gateway)

Set the provider's file gateway.

Details

in Provider at line 12
string name()

Get the name of the underlying AI provider.

Return Value

string

in Provider at line 17
string driver()

Get the name of the underlying AI driver.

Return Value

string

in Provider at line 24
array providerCredentials()

Get the credentials for the underlying AI provider.

Return Value

array

in Provider at line 31
array additionalConfiguration()

Get the provider connection configuration other than the driver, key, and name.

Return Value

array

in Provider at line 40
Provider withHeaders(array $headers)

internal  
 

Get a provider instance that sends the given HTTP headers with each request.

Parameters

array $headers

Return Value

Provider

at line 18
FileResponse getFile(string $fileId)

Get a file by its ID.

Parameters

string $fileId

Return Value

FileResponse

at line 23
StoredFileResponse putFile(StorableFile $file)

Store the given file.

Parameters

StorableFile $file

Return Value

StoredFileResponse

at line 28
void deleteFile(string $fileId)

Delete a file by its ID.

Parameters

string $fileId

Return Value

void

at line 33
FileGateway fileGateway()

Get the provider's file gateway.

Return Value

FileGateway

at line 38
FileProvider useFileGateway(FileGateway $gateway)

Set the provider's file gateway.

Parameters

FileGateway $gateway

Return Value

FileProvider