Update app.py
Browse files
app.py
CHANGED
@@ -56,10 +56,10 @@ from langchain.llms import HuggingFaceEndpoint
|
|
56 |
groq_api_key = os.environ.get("GROQ_API_KEY")
|
57 |
|
58 |
# به جای OpenAI اینو بذار:
|
59 |
-
llm =
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
)
|
64 |
|
65 |
# ----------------- تعریف SimpleRetriever -----------------
|
|
|
56 |
groq_api_key = os.environ.get("GROQ_API_KEY")
|
57 |
|
58 |
# به جای OpenAI اینو بذار:
|
59 |
+
llm = ChatOpenAI(
|
60 |
+
base_url="https://api.together.xyz/v1",
|
61 |
+
api_key='0291f33aee03412a47fa5d8e562e515182dcc5d9aac5a7fb5eefdd1759005979',
|
62 |
+
model="meta-llama/Llama-3.3-70B-Instruct-Turbo-Free"
|
63 |
)
|
64 |
|
65 |
# ----------------- تعریف SimpleRetriever -----------------
|