Update main.py
Browse files
main.py
CHANGED
|
@@ -65,7 +65,7 @@ def web_search(query: str) -> str:
|
|
| 65 |
if not google_api_key or not google_cse_id:
|
| 66 |
return "Web search requires GOOGLE_API_KEY and GOOGLE_CSE_ID to be set."
|
| 67 |
|
| 68 |
-
# بحث عام بدلاً
|
| 69 |
url = f"https://www.googleapis.com/customsearch/v1?key={google_api_key}&cx={google_cse_id}&q={query}"
|
| 70 |
response = requests.get(url, timeout=10)
|
| 71 |
response.raise_for_status()
|
|
|
|
| 65 |
if not google_api_key or not google_cse_id:
|
| 66 |
return "Web search requires GOOGLE_API_KEY and GOOGLE_CSE_ID to be set."
|
| 67 |
|
| 68 |
+
# بحث عام بدلاً البحث فقط في mgzon.com
|
| 69 |
url = f"https://www.googleapis.com/customsearch/v1?key={google_api_key}&cx={google_cse_id}&q={query}"
|
| 70 |
response = requests.get(url, timeout=10)
|
| 71 |
response.raise_for_status()
|