BumbleDocGen / Technical description of the project / Class map / ProviderFactory
ProviderFactory class:
namespace BumbleDocGen\AI;
final class ProviderFactory
- #
VALID_PROVIDERS
| source code
- # create | source code
public static function create(string $provider, string $apiKey, string|null $model = null): \BumbleDocGen\AI\ProviderInterface;
Parameters:
Name | Type | Description |
---|---|---|
$provider | string | - |
$apiKey | string | - |
$model | string | null | - |
Return value: \BumbleDocGen\AI\ProviderInterface