This commit is contained in:
2025-12-28 18:42:40 +05:00
parent a811c77f47
commit 1d253f1cda
6 changed files with 20 additions and 8 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
composer.json Normal file → Executable file
View File

0
mirzaev/neuroseti/system/api.php Normal file → Executable file
View File

28
mirzaev/neuroseti/system/network.php Normal file → Executable file
View File

@@ -19,18 +19,23 @@ use mirzaev\neuroseti\api;
*/ */
enum network: string enum network: string
{ {
// OpenAI GPT-5
case gpt_5_2 = 'gpt-5.2';
case gpt_5_1 = 'gpt-5.1';
case gpt_5_pro = 'gpt-5-pro';
case gpt_5_mini = 'gpt-5-mini';
case gpt_5_nano = 'gpt-5-nano';
case gpt_5 = 'gpt-5';
// OpenAI GPT-4 // OpenAI GPT-4
case gpt_4_1 = 'gpt-4.1'; case gpt_4_1 = 'gpt-4.1';
case gpt_4_1_mini = 'gpt-4.1-mini'; case gpt_4_1_mini = 'gpt-4.1-mini';
case gpt_4_1_nano = 'gpt-4.1-nano'; case gpt_4_1_nano = 'gpt-4.1-nano';
case o4_mini = 'o4-mini'; case o4_mini = 'o4-mini';
// OpenAI GPT-5 // OpenAI GPT-3
case gpt_5 = 'gpt-5'; case gpt_3_5_turbo = 'gpt-3.5-turbo';
case gpt_5_mini = 'gpt-5-mini';
case gpt_5_nano = 'gpt-5-nano';
case gpt_5_pro = 'gpt-5-pro';
case gpt_5_1 = 'gpt-5.1';
// OpenAI GPT RealTime // OpenAI GPT RealTime
case gpt_realtime = 'gpt-realtime'; case gpt_realtime = 'gpt-realtime';
@@ -53,6 +58,8 @@ enum network: string
{ {
// Exit (success) // Exit (success)
return match ($this) { return match ($this) {
static::gpt_3_5_turbo => 'GPT-3.5 turbo',
static::gpt_4_1 => 'GPT-4.1',
static::gpt_4_1 => 'GPT-4.1', static::gpt_4_1 => 'GPT-4.1',
static::gpt_4_1_mini => 'GPT-4.1 mini', static::gpt_4_1_mini => 'GPT-4.1 mini',
static::gpt_4_1_nano => 'GPT-4.1 nano', static::gpt_4_1_nano => 'GPT-4.1 nano',
@@ -62,12 +69,14 @@ enum network: string
static::gpt_5_nano => 'GPT-5 nano', static::gpt_5_nano => 'GPT-5 nano',
static::gpt_5_pro => 'GPT-5 pro', static::gpt_5_pro => 'GPT-5 pro',
static::gpt_5_1 => 'GPT-5.1', static::gpt_5_1 => 'GPT-5.1',
static::gpt_5_2 => 'GPT-5.2',
static::gpt_realtime => 'GPT realtime', static::gpt_realtime => 'GPT realtime',
static::gpt_realtime_mini => 'GPT realtime mini', static::gpt_realtime_mini => 'GPT realtime mini',
static::sora_2 => 'Sora 2', static::sora_2 => 'Sora 2',
static::sora_2_pro => 'Sora 2 pro', static::sora_2_pro => 'Sora 2 pro',
static::gpt_image_1 => 'GPT image 1', static::gpt_image_1 => 'GPT image 1',
static::gpt_image_1_mini => 'GPT image 1 mini' static::gpt_image_1_mini => 'GPT image 1 mini',
default => throw new exception_domain('Failed to read label for the neural network: ' . $this->name)
}; };
} }
@@ -80,6 +89,7 @@ enum network: string
{ {
// Exit (success) // Exit (success)
return match ($this) { return match ($this) {
static::gpt_3_5_turbo,
static::gpt_4_1, static::gpt_4_1,
static::gpt_4_1_mini, static::gpt_4_1_mini,
static::gpt_4_1_nano, static::gpt_4_1_nano,
@@ -89,13 +99,15 @@ enum network: string
static::gpt_5_nano, static::gpt_5_nano,
static::gpt_5_pro, static::gpt_5_pro,
static::gpt_5_1, static::gpt_5_1,
static::gpt_5_2,
static::gpt_realtime, static::gpt_realtime,
static::gpt_realtime_mini, static::gpt_realtime_mini,
static::sora_2, static::sora_2,
static::sora_2_pro, static::sora_2_pro,
static::gpt_image_1, static::gpt_image_1,
static::gpt_image_1_mini, static::gpt_image_1_mini,
=> api::openai => api::openai,
default => throw new exception_domain('Failed to read API for the neural network: ' . $this->name)
}; };
} }
} }