We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f90fef commit 9d6fcf7Copy full SHA for 9d6fcf7
scrapegraphai/builders/graph_builder.py
@@ -66,10 +66,8 @@ def _create_llm(self):
66
}
67
# Update defaults with any LLM parameters that were provided
68
llm_params = {**llm_defaults, **self.llm_config}
69
- # Ensure the api_key is set, raise an error if it's not
70
if "api_key" not in llm_params:
71
raise ValueError("LLM configuration must include an 'api_key'.")
72
- # Create the OpenAI instance with the provided and default parameters
73
return OpenAI(llm_params)
74
75
def _generate_nodes_description(self):
0 commit comments