label map, or WP_Error on failure. */ public function get_models( bool $force = false ); /** * Generate text for a prompt and return the plain text output. * * Supported $args keys (providers may ignore what they don't support): * `model`, `system`, `max_tokens`, `temperature`, `timeout`. * * @param string $prompt The user prompt. * @param array $args Optional generation arguments. * * @since 2.3.0 * @return string|\WP_Error The generated text or WP_Error on failure. */ public function generate( string $prompt, array $args = array() ); }