BumbleDocGen / Technical description of the project / Class map / Provider
Provider class:
namespace BumbleDocGen\AI\Providers\OpenAI;
final class Provider implements \BumbleDocGen\AI\ProviderInterface
- #
NAME
| source code
- # __construct | source code
public function __construct(string $bearerToken, string|null $model);
Parameters:
Name | Type | Description |
---|---|---|
$bearerToken | string | - |
$model | string | null | - |
- # formatDataPrompt | source code
public function formatDataPrompt(string $title, string $content): string;
Parameters:
Name | Type | Description |
---|---|---|
$title | string | - |
$content | string | - |
Return value: string
- # getAvailableModels | source code
public function getAvailableModels(): array;
Parameters: not specified
Return value: array
Throws:
- # getName | source code
public function getName(): string;
Parameters: not specified
Return value: string
- # getSystemPrompt | source code
public function getSystemPrompt(string $fileName): string;
Parameters:
Name | Type | Description |
---|---|---|
$fileName | string | - |
Return value: string
- # sendPrompts | source code
public function sendPrompts(array $prompts, string $system): string;
Parameters:
Name | Type | Description |
---|---|---|
$prompts | array | - |
$system | string | - |
Return value: string