File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ graphviz = "0.20.1"
38
38
google = " 3.0.0"
39
39
minify-html = " 0.15.0"
40
40
free-proxy = " 1.1.1"
41
+ langchain-groq = " 0.1.3"
41
42
42
43
[tool .poetry .dev-dependencies ]
43
44
pytest = " 8.0.0"
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ python-dotenv==1.0.1
11
11
tiktoken >= 0.5.2 ,< 0.6.0
12
12
tqdm == 4.66.1
13
13
minify-html == 0.15.0
14
- free-proxy == 1.1.1
14
+ langchain-groq == 0.1.3
15
+ free-proxy == 1.1.1
Original file line number Diff line number Diff line change
1
+ """
2
+ Groq module configuration
3
+ """
4
+
5
+ from langchain_groq import ChatGroq
6
+
7
+
8
+ class Groq (ChatGroq ):
9
+ """Class for wrapping Groq module"""
10
+
11
+ def __init__ (self , llm_config : dict ):
12
+ """
13
+ A wrapper for the Groq class that provides default configuration
14
+ and could be extended with additional methods if needed.
15
+
16
+ Args:
17
+ llm_config (dict): Configuration parameters for the language model.
18
+ such as model="llama3-70b-8192" and api_key
19
+ """
20
+ # Initialize the superclass (ChatOpenAI) with provided config parameters
21
+ super ().__init__ (** llm_config )
You can’t perform that action at this time.
0 commit comments