Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
tbf
/
tbfguestbe.tbf.ro
/
app
/
Models
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
89.40.16.97
System
Linux server.atelieruldeit.ro 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User
tbf
PHP Version
7.3.33
Software
Apache
Doc root
Writable
close
Edit File :
AiLog.php
| Size :
1.57
KB
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class AiLog extends Model { use HasFactory; CONST SOFT_MODEL_TYPE = [ 'procedure' => "procedura", ]; CONST AI_MODEL = [ 'text-davinci-003' => "text-davinci-003", 'text-davinci-002' => "text-davinci-002", 'text-davinci-001' => "text-davinci-001", 'text-curie-001' => "text-curie-001", 'text-babbage-001' => "text-babbage-001", 'text-ada-001' => "text-ada-001", 'davinci-instruct-beta' => "davinci-instruct-beta", 'davinci' => "davinci", 'curie-instruct-beta' => "curie-instruct-beta", 'curie' => "curie", 'babbage' => "babbage", 'ada' => "ada", ]; protected $fillable = [ 'ai_account', 'instance_id', 'resource_id', 'user_id', 'prompt_id', 'is_test', 'app_model_type', 'context_id', 'temperature', 'max_tokens', 'object', 'ai_model', 'prompt_tokens', 'completion_tokens', 'total_tokens', 'system', 'user_input', 'assistant_message', 'response_header', 'finish_reason', 'response_index', ]; /** @var array $casts */ protected $casts = [ 'response_header' => 'array', ]; public function instance() { return $this->belongsTo(Instance::class); } public function users() { return $this->belongsToMany(User::class); } }
Back