From 9d6fcf7882fab992dc779d71a98a9c67abfb06c2 Mon Sep 17 00:00:00 2001 From: VinciGit00 Date: Sun, 25 Feb 2024 10:45:13 +0100 Subject: [PATCH] refactoring --- scrapegraphai/builders/graph_builder.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scrapegraphai/builders/graph_builder.py b/scrapegraphai/builders/graph_builder.py index efea33e9..1da4c928 100644 --- a/scrapegraphai/builders/graph_builder.py +++ b/scrapegraphai/builders/graph_builder.py @@ -66,10 +66,8 @@ class GraphBuilder: } # Update defaults with any LLM parameters that were provided llm_params = {**llm_defaults, **self.llm_config} - # Ensure the api_key is set, raise an error if it's not if "api_key" not in llm_params: raise ValueError("LLM configuration must include an 'api_key'.") - # Create the OpenAI instance with the provided and default parameters return OpenAI(llm_params) def _generate_nodes_description(self):