Add files via upload

This commit is contained in:
FatihMakes authored and GitHub committed 2026-05-02 11:51:56 +03:00
1 parent ff7a982d82
commit c36079104e
17 files changed
+2854 -1210

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
#web_search.py
import json
import sys
from pathlib import Path
@@ -22,7 +23,7 @@ def _gemini_search(query: str) -> str:
client = genai.Client(api_key=_get_api_key())
response = client.models.generate_content(
model="gemini-2.5-flash-lite",
model="gemini-2.5-flash",
contents=query,
config={"tools": [{"google_search": {}}]},
)