Update app.py
Browse files
app.py
CHANGED
@@ -107,14 +107,15 @@ retriever = db.as_retriever(
|
|
107 |
# streaming=True
|
108 |
# )
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
|
|
118 |
|
119 |
)
|
120 |
|
|
|
107 |
# streaming=True
|
108 |
# )
|
109 |
|
110 |
+
llm = ChatOpenAI(
|
111 |
+
model="meta-llama/Llama-3.3-70B-Instruct",
|
112 |
+
temperature=0,
|
113 |
+
max_tokens=None,
|
114 |
+
timeout=None,
|
115 |
+
max_retries=2,
|
116 |
+
api_key=HF_TOKEN, # if you prefer to pass api key in directly instaed of using env vars
|
117 |
+
base_url="https://api-inference.huggingface.co/v1/",
|
118 |
+
stream=True,
|
119 |
|
120 |
)
|
121 |
|