| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/public_html/wp-content/plugins/ai-engine/classes/queries/ |
Upload File : |
<?php
class Meow_MWAI_Query_Transcribe extends Meow_MWAI_Query_Base {
public string $url = "";
public function __construct( $message = '', $model = 'whisper-1' ) {
parent::__construct( $message );
$this->set_model( $model );
$this->mode = 'transcription';
}
public function set_url( $url ) {
$this->url = $url;
}
// Based on the params of the query, update the attributes
public function inject_params( array $params ): void
{
parent::inject_params( $params );
$params = $this->convert_keys( $params );
if ( !empty( $params['url'] ) ) {
$this->set_url( $params['url'] );
}
}
}