Update app.py
Browse files
app.py
CHANGED
@@ -146,19 +146,18 @@ class LLMChainConfig(BaseModel):
|
|
146 |
instruction_text_priv: str
|
147 |
personvernspolicy_data: dict
|
148 |
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
)
|
160 |
-
|
161 |
-
|
162 |
cl.user_session.set("llm_chain", llm_chain)
|
163 |
|
164 |
api_chain = APIChain.from_llm_and_api_docs(
|
|
|
146 |
instruction_text_priv: str
|
147 |
personvernspolicy_data: dict
|
148 |
|
149 |
+
llm_chain = LLMChain(
|
150 |
+
llm=llm,
|
151 |
+
prompt=daysoff_assistant_prompt,
|
152 |
+
memory=conversation_memory,
|
153 |
+
**LLMChainConfig(
|
154 |
+
instruction_text_faq=instruction_text_faq,
|
155 |
+
faq=faq,
|
156 |
+
instruction_text_priv=instruction_text_priv,
|
157 |
+
personvernspolicy_data=personvernspolicy_data
|
158 |
+
).model_dump()
|
159 |
+
)
|
160 |
+
|
|
|
161 |
cl.user_session.set("llm_chain", llm_chain)
|
162 |
|
163 |
api_chain = APIChain.from_llm_and_api_docs(
|