fix: remove validation which could prevent selfhosting w ollama
This commit is contained in:
@@ -202,10 +202,6 @@ new class extends Component {
|
||||
$organization = config('openai.organization');
|
||||
$baseUri = config('openai.base_uri');
|
||||
|
||||
if (! is_string($apiKey) || ($organization !== null && ! is_string($organization))) {
|
||||
throw new \InvalidArgumentException('The OpenAI API Key is missing. Please publish the [openai.php] configuration file and set the [api_key].');
|
||||
}
|
||||
|
||||
return OpenAI::factory()
|
||||
->withApiKey($apiKey)
|
||||
->withOrganization($organization)
|
||||
|
||||
Reference in New Issue
Block a user