Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1051,12 +1051,6 @@ REMEMBER: One tool per turn. No reasoning without tools. Exact answer format.
|
|
| 1051 |
"""
|
| 1052 |
|
| 1053 |
#. Initialize the LLM ()
|
| 1054 |
-
#self.llm_with_tools = HuggingFaceEndpoint(
|
| 1055 |
-
# repo_id="HuggingFaceH4/zephyr-7b-beta", # Changed model
|
| 1056 |
-
# huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
|
| 1057 |
-
# max_new_tokens=2048, # Increased token limit for potentially longer reasoning/tool use
|
| 1058 |
-
# temperature=0.01, # Keep temperature low for factual tasks
|
| 1059 |
-
# Use tool_choice="any" to FORCE tool usage
|
| 1060 |
# print("Initializing Groq LLM...")
|
| 1061 |
# try:
|
| 1062 |
# self.llm_with_tools = ChatGroq(
|
|
@@ -1084,7 +1078,7 @@ REMEMBER: One tool per turn. No reasoning without tools. Exact answer format.
|
|
| 1084 |
print("✅ HuggingFace LLM Endpoint initialized.")
|
| 1085 |
|
| 1086 |
# Bind tools to the LLM
|
| 1087 |
-
self.llm_with_tools = chat_llm.bind_tools(self.tools
|
| 1088 |
print("✅ Tools bound to LLM.")
|
| 1089 |
# print("Initializing Google Gemini LLM...")
|
| 1090 |
# try:
|
|
|
|
| 1051 |
"""
|
| 1052 |
|
| 1053 |
#. Initialize the LLM ()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1054 |
# print("Initializing Groq LLM...")
|
| 1055 |
# try:
|
| 1056 |
# self.llm_with_tools = ChatGroq(
|
|
|
|
| 1078 |
print("✅ HuggingFace LLM Endpoint initialized.")
|
| 1079 |
|
| 1080 |
# Bind tools to the LLM
|
| 1081 |
+
self.llm_with_tools = chat_llm.bind_tools(self.tools)
|
| 1082 |
print("✅ Tools bound to LLM.")
|
| 1083 |
# print("Initializing Google Gemini LLM...")
|
| 1084 |
# try:
|