We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23072c commit 8cf81c9Copy full SHA for 8cf81c9
scrapegraphai/models/nvidia.py
@@ -8,6 +8,11 @@ class Nvidia:
8
A wrapper for the ChatNVIDIA class that provides default configuration
9
and could be extended with additional methods if needed.
10
11
+ Note: This class uses __new__ instead of __init__ because langchain_nvidia_ai_endpoints
12
+ is an optional dependency. We cannot inherit from ChatNVIDIA at class definition time
13
+ since the module may not be installed. The __new__ method allows us to lazily import
14
+ and return a ChatNVIDIA instance only when Nvidia() is instantiated.
15
+
16
Args:
17
llm_config (dict): Configuration parameters for the language model.
18
"""
0 commit comments