Update main.py
Browse files
main.py
CHANGED
|
@@ -30,7 +30,7 @@ async def generate_response(request: PromptRequest):
|
|
| 30 |
temperature=request.temperature,
|
| 31 |
base_url="http://localhost:11434"
|
| 32 |
)
|
| 33 |
-
tool_prompt = f"System Role: You are an autonomous AI Agent with real-time internet access. Current Date: {today_date} TOOL_DEFINITION: - Name: Search_tool - Activation Command: Search [Your Query Here]"
|
| 34 |
response = llm.invoke(f'{tool_prompt}, User-Query:-{request.prompt}')
|
| 35 |
print(response)
|
| 36 |
|
|
|
|
| 30 |
temperature=request.temperature,
|
| 31 |
base_url="http://localhost:11434"
|
| 32 |
)
|
| 33 |
+
tool_prompt = f"System Role: You are an autonomous AI Agent with real-time internet access. Current Date: {today_date} TOOL_DEFINITION: - Name: Search_tool - Activation Command: Search [Your Query Here] - Note:-Search Query should unbder 300 characters it should not exceed if you Activate this tool."
|
| 34 |
response = llm.invoke(f'{tool_prompt}, User-Query:-{request.prompt}')
|
| 35 |
print(response)
|
| 36 |
|