File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 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"
3838google = " 3.0.0"
3939minify-html = " 0.15.0"
4040free-proxy = " 1.1.1"
41+ langchain-groq = " 0.1.3"
4142
4243[tool .poetry .dev-dependencies ]
4344pytest = " 8.0.0"
Original file line number Diff line number Diff line change @@ -11,4 +11,5 @@ python-dotenv==1.0.1
1111tiktoken >= 0.5.2 ,< 0.6.0
1212tqdm == 4.66.1
1313minify-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