Spaces:
Sleeping
Sleeping
madhurjindal
commited on
Create __init__.py
Browse files- __init__.py +14 -0
__init__.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from langchain_mistralai import ChatMistralAI
|
2 |
+
|
3 |
+
llm = ChatMistralAI(
|
4 |
+
model="mistral-small-latest",
|
5 |
+
temperature=0,
|
6 |
+
max_retries=2,
|
7 |
+
# other params...
|
8 |
+
)
|
9 |
+
llm_structured = ChatMistralAI(
|
10 |
+
model="mistral-small-latest",
|
11 |
+
temperature=0,
|
12 |
+
max_retries=2,
|
13 |
+
# other params...
|
14 |
+
).with_structured_output(method="json_mode")
|