feat(AI): add ai manager admin and create powerpoint with ai
This commit is contained in:
25
app/Enums/AiProviderDriver.php
Normal file
25
app/Enums/AiProviderDriver.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum AiProviderDriver: string
|
||||
{
|
||||
case OpenAi = 'openai';
|
||||
case GapGpt = 'gapgpt';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::OpenAi => 'OpenAI (GPT)',
|
||||
self::GapGpt => 'GapGPT',
|
||||
};
|
||||
}
|
||||
|
||||
public function defaultBaseUrl(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::OpenAi => 'https://api.openai.com/v1',
|
||||
self::GapGpt => 'https://api.gapgpt.app/v1',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user