Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/ai-engine/classes/queries/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/ai-engine/classes/queries/transcribe.php |
<?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'] );
}
}
}