Current File : /home/kelaby89/cartel.express/wp-content/plugins/ai-engine/classes/query/transcribe.php
<?php

class Meow_MWAI_Query_Transcribe extends Meow_MWAI_Query_Base {
  public string $url = '';

  // Core Content
  public ?Meow_MWAI_Query_DroppedFile $attachedFile = null;

  public function __construct( $message = '', $model = 'whisper-1' ) {
    parent::__construct( $message );
    $this->set_model( $model );
    $this->feature = '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'] );
    }
  }

  #region File Handling

  public function set_file( Meow_MWAI_Query_DroppedFile $file ): void {
    $this->attachedFile = $file;
  }

  #endregion
}
Page not found – Hello World !