cdcvd commited on
Commit
8479604
·
verified ·
1 Parent(s): bd31ed4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -512,7 +512,7 @@ from langchain.schema import SystemMessage, HumanMessage, AIMessage
512
  # تنظیمات کلیدهای API
513
  # OPENAI_API_KEY = os.getenv("OPENAI_API_KEY1")
514
  # os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
515
-
516
  # مدل LLM برای Chatbot
517
  client = Together()
518
 
@@ -636,6 +636,7 @@ def agent_respond(message):
636
  top_k=50,
637
  repetition_penalty=1,
638
  stop=["<|eot_id|>", "<|eom_id|>"],
 
639
  stream=True
640
  )
641
 
 
512
  # تنظیمات کلیدهای API
513
  # OPENAI_API_KEY = os.getenv("OPENAI_API_KEY1")
514
  # os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
515
+ os.environ["TOGETHER_API_KEY"] = "e9e74dc49951281481f5c7ec603f867f55cfe5ef776a1459289974cbe5a4af11"
516
  # مدل LLM برای Chatbot
517
  client = Together()
518
 
 
636
  top_k=50,
637
  repetition_penalty=1,
638
  stop=["<|eot_id|>", "<|eom_id|>"],
639
+ _gl="1*1kgd2gr*_gcl_au*NzkwMDYxMTc0LjE3MzMzOTYxOTM.",
640
  stream=True
641
  )
642