webSearch->search($query); if ('' === $searchText) { $searchText = $this->webSearch->search("{$modelName} specs datasheet"); } if ('' === $searchText) { throw new \RuntimeException("No web search results found for model: {$modelName}"); } $prompt = <<ollama->generate($this->model, $prompt); } }