* @throws ApiException * @throws DomainException */ public function generateCompletion( Model $model, array $params = [], ): Generator; }