M17idd commited on
Commit
db33911
·
verified ·
1 Parent(s): a5be442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = HuggingFaceEndpoint(
60
- repo_id="deepseek-ai/deepseek-llm-67b-chat",
61
- huggingfacehub_api_token=groq_api_key,
62
- task="text-generation"
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 -----------------