This commit is contained in:
@ -12,7 +12,7 @@ class OpenAPIPrompt implements IAIPrompt
|
|||||||
private string $host;
|
private string $host;
|
||||||
private ?string $token = null;
|
private ?string $token = null;
|
||||||
|
|
||||||
public function __construct(string $host = null) {
|
public function __construct(?string $host = null) {
|
||||||
$this->host = $host ?? config('llm.api.host');
|
$this->host = $host ?? config('llm.api.host');
|
||||||
if (config('llm.api.token')) {
|
if (config('llm.api.token')) {
|
||||||
$this->token = config('llm.api.token');
|
$this->token = config('llm.api.token');
|
||||||
|
Reference in New Issue
Block a user