created
This commit is contained in:
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
!.gitignore
|
||||||
|
composer.lock
|
||||||
|
vendor
|
||||||
14
README.md
14
README.md
@@ -1,3 +1,15 @@
|
|||||||
# neuroseti
|
# neuroseti
|
||||||
|
Library for easy neural networks support
|
||||||
|
|
||||||
|
```php
|
||||||
|
// Library for neural networks support
|
||||||
|
use mirzaev\neuroseti\network;
|
||||||
|
|
||||||
|
var_dump(network::gpt5);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
```bash
|
||||||
|
composer require mirzaev/neuroseti
|
||||||
|
```
|
||||||
|
|
||||||
Library for easy neural networks support
|
|
||||||
33
composer.json
Normal file
33
composer.json
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"name": "mirzaev/neuroseti",
|
||||||
|
"description": "Library for easy neural networks support",
|
||||||
|
"homepage": "https://git.svoboda.works/mirzaev/neuroseti",
|
||||||
|
"type": "library",
|
||||||
|
"keywords": [],
|
||||||
|
"readme": "README.md",
|
||||||
|
"license": "WTFPL",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Arsen Mirzaev Tatyano-Muradovich",
|
||||||
|
"email": "arsen@mirzaev.sexy",
|
||||||
|
"homepage": "https://mirzaev.sexy",
|
||||||
|
"role": "Creator"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://git.svoboda.works/mirzaev/neuroseti/issues"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "^8.4"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"mirzaev\\neuroseti\\": "mirzaev/neuroseti/system"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"mirzaev\\neuroseti\\tests\\": "mirzaev/neuroseti/tests"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
43
mirzaev/neuroseti/system/network.php
Normal file
43
mirzaev/neuroseti/system/network.php
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace mirzaev\neuroseti;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Neural network
|
||||||
|
*
|
||||||
|
* Types of neural networks
|
||||||
|
*
|
||||||
|
* @package mirzaev\neuroseti
|
||||||
|
*
|
||||||
|
* @license http://www.wtfpl.net/ Do What The Fuck You Want To Public License
|
||||||
|
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
|
||||||
|
*/
|
||||||
|
enum network: string
|
||||||
|
{
|
||||||
|
// OpenAI GPT-4
|
||||||
|
case gpt_4_1 = 'GPT-4.1';
|
||||||
|
case gpt_4_1_mini = 'GPT-4.1 mini';
|
||||||
|
case gpt_4_1_nano = 'GPT-4.1 nano';
|
||||||
|
case o_4_mini = 'o4-mini';
|
||||||
|
|
||||||
|
// OpenAI GPT-5
|
||||||
|
case gpt_5 = 'GPT-5';
|
||||||
|
case gpt_5_mini = 'GPT-5 mini';
|
||||||
|
case gpt_5_nano = 'GPT-5 nano';
|
||||||
|
case gpt_5_pro = 'GPT-5 pro';
|
||||||
|
|
||||||
|
// OpenAI GPT RealTime
|
||||||
|
case gpt_realtime = 'GPT realtime';
|
||||||
|
case gpt_realtime_mini = 'GPT realtime mini';
|
||||||
|
|
||||||
|
// OpenAI Sora 2
|
||||||
|
case sora_2 = 'Sora 2';
|
||||||
|
case sora_2_pro = 'Sora 2 pro';
|
||||||
|
|
||||||
|
// OpenAI Image Generation
|
||||||
|
case gpt_image_1 = 'GPT image 1';
|
||||||
|
case gpt_image_1_mini = 'GPT image 1 mini';
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user