Spaces:
Running
Running
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -26,7 +26,8 @@ load_dotenv()
|
|
| 26 |
# If using a specific endpoint, verify it's correct.
|
| 27 |
endpoint = HuggingFaceEndpoint(
|
| 28 |
# endpoint_url="https://api-inference.huggingface.co/models/meta-llama/Llama-3-70b-instruct", # Using Llama-3-70b-instruct as per your original code
|
| 29 |
-
|
|
|
|
| 30 |
temperature=0.01, # Keep a low temperature for consistent tool-use decisions
|
| 31 |
)
|
| 32 |
llm = ChatHuggingFace(llm=endpoint)
|
|
|
|
| 26 |
# If using a specific endpoint, verify it's correct.
|
| 27 |
endpoint = HuggingFaceEndpoint(
|
| 28 |
# endpoint_url="https://api-inference.huggingface.co/models/meta-llama/Llama-3-70b-instruct", # Using Llama-3-70b-instruct as per your original code
|
| 29 |
+
# endpoint_url="https://api-inference.huggingface.co/models/meta-llama/Llama-3-8b-instruct",
|
| 30 |
+
endpoint_url="https://api-inference.huggingface.co/models/Meta-DeepLearning/llama-2-7b-chat-hf",
|
| 31 |
temperature=0.01, # Keep a low temperature for consistent tool-use decisions
|
| 32 |
)
|
| 33 |
llm = ChatHuggingFace(llm=endpoint)
|