'wp_kses_post', 'prompt' => '$this->sanitize_promtp', 'max_tokens' => 'absint', 'max_completion_tokens' => 'absint', 'stop' => 'json_decode', 'temperature' => 'floatval', 'best_of' => 'absint', 'top_p' => 'floatval', ); public static $validateProperties = array( 'prompt' => 'strlen', ); public function sanitize_promtp( $value ) { return addslashes( urldecode( $value ) ); } }