FileProvider
interface FileProvider implements Provider
Methods
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.
void
deleteFile(string $fileId)
Delete a file by its ID.
fileGateway()
Get the provider's file gateway.
Details
in
Provider at line 12
string
name()
Get the name of the underlying AI provider.
in
Provider at line 17
string
driver()
Get the name of the underlying AI driver.
in
Provider at line 24
array
providerCredentials()
Get the credentials for the underlying AI provider.
in
Provider at line 31
array
additionalConfiguration()
Get the provider connection configuration other than the driver, key, and name.
in
Provider at line 40
Provider
withHeaders(array $headers)
| internal |
Get a provider instance that sends the given HTTP headers with each request.
at line 18
FileResponse
getFile(string $fileId)
Get a file by its ID.
at line 23
StoredFileResponse
putFile(StorableFile $file)
Store the given file.
at line 28
void
deleteFile(string $fileId)
Delete a file by its ID.
at line 33
FileGateway
fileGateway()
Get the provider's file gateway.
at line 38
FileProvider
useFileGateway(FileGateway $gateway)
Set the provider's file gateway.