ama2aifusion commited on
Commit
01c19ee
·
verified ·
1 Parent(s): 3889a5e

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +8 -3
agent.py CHANGED
@@ -148,11 +148,16 @@ def build_graph(provider: str = "huggingface"):
148
  chat = ChatGroq(model="qwen-qwq-32b", temperature=0) # optional : qwen-qwq-32b gemma2-9b-it
149
  elif provider == "huggingface":
150
  # Add huggingface endpoint
 
151
  chat = ChatHuggingFace(
 
 
 
 
152
  llm=HuggingFaceEndpoint(
153
- endpoint_url="https://api-inference.huggingface.co/models/Meta-DeepLearning/llama-2-7b-chat-hf",
154
- temperature=0,
155
- ),
156
  )
157
  else:
158
  raise ValueError("Invalid provider. Choose 'google', 'groq' or 'huggingface'.")
 
148
  chat = ChatGroq(model="qwen-qwq-32b", temperature=0) # optional : qwen-qwq-32b gemma2-9b-it
149
  elif provider == "huggingface":
150
  # Add huggingface endpoint
151
+ repo_id = "mistralai/Mistral-7B-Instruct-v0.2"
152
  chat = ChatHuggingFace(
153
+ #llm=HuggingFaceEndpoint(
154
+ # endpoint_url="https://api-inference.huggingface.co/models/Meta-DeepLearning/llama-2-7b-chat-hf",
155
+ # temperature=0,
156
+ #),
157
  llm=HuggingFaceEndpoint(
158
+ repo_id=repo_id,
159
+ temperature=0.1
160
+ )
161
  )
162
  else:
163
  raise ValueError("Invalid provider. Choose 'google', 'groq' or 'huggingface'.")