Skip to content

Commit 9d6fcf7

Browse files
committed
refactoring
1 parent 8f90fef commit 9d6fcf7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

scrapegraphai/builders/graph_builder.py

-2
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ def _create_llm(self):
6666
}
6767
# Update defaults with any LLM parameters that were provided
6868
llm_params = {**llm_defaults, **self.llm_config}
69-
# Ensure the api_key is set, raise an error if it's not
7069
if "api_key" not in llm_params:
7170
raise ValueError("LLM configuration must include an 'api_key'.")
72-
# Create the OpenAI instance with the provided and default parameters
7371
return OpenAI(llm_params)
7472

7573
def _generate_nodes_description(self):

0 commit comments

Comments
 (0)