IProviderWithUserId
extends
IProvider
in
This is the interface that is implemented by apps that implement a text to image provider
Tags
Table of Contents
Methods
- generate() : void
- Processes a text
- getExpectedRuntime() : int
- The expected runtime for one task with this provider in seconds
- getId() : string
- An arbitrary unique text string identifying this provider
- getName() : string
- The localized name of this provider
- setUserId() : void
Methods
generate()
Processes a text
public
generate(string $prompt, array<string|int, resource> $resources) : void
Parameters
- $prompt : string
-
The input text
- $resources : array<string|int, resource>
-
The file resources to write the images to
Tags
getExpectedRuntime()
The expected runtime for one task with this provider in seconds
public
getExpectedRuntime() : int
Tags
Return values
intgetId()
An arbitrary unique text string identifying this provider
public
getId() : string
Tags
Return values
stringgetName()
The localized name of this provider
public
getName() : string
Tags
Return values
stringsetUserId()
public
setUserId(string|null $userId) : void
Parameters
- $userId : string|null