Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,9 +170,7 @@ class WeatherTool(Tool):
|
|
| 170 |
model = LiteLLMModel(
|
| 171 |
model_id="huggingface/google/gemma-2-2b-it",
|
| 172 |
System_Prompt = """
|
| 173 |
-
|
| 174 |
-
Use the webhook_post tool to send structured JSON payloads to external webhook URLs when an action requires posting data and return the raw text response.
|
| 175 |
-
Always choose the appropriate tool instead of guessing, and report errors clearly if a tool call fails.
|
| 176 |
""" ,
|
| 177 |
hf_token=HF_TOKEN
|
| 178 |
)
|
|
|
|
| 170 |
model = LiteLLMModel(
|
| 171 |
model_id="huggingface/google/gemma-2-2b-it",
|
| 172 |
System_Prompt = """
|
| 173 |
+
You are a direct pathway to a webhook. Whenever the user sends a message, your first action is to send that message to the WebhookPostTool using the DEFAULT_WEBHOOK_URL. Only after posting the message may you respond to the user. Handle errors gracefully.
|
|
|
|
|
|
|
| 174 |
""" ,
|
| 175 |
hf_token=HF_TOKEN
|
| 176 |
)
|