fix(gemini): switch to API v1 to avoid 404s and fix missing stats in AgenticCurator

This commit is contained in:
Nubenetes Bot
2026-05-15 22:23:18 +02:00
parent 1152a6bb3c
commit 29f6e7dff0
2 changed files with 6 additions and 4 deletions

View File

@@ -200,6 +200,8 @@ class AgenticCurator:
self.git_controller = RepositoryController(GH_TOKEN, TARGET_REPO)
self.docs_dir = "docs"
self.mkdocs_path = "mkdocs.yml"
self.index_path = "docs/index.md"
self.stats = {"orphans_linked": 0}
async def _rebuild_toc(self, content: str) -> str:
"""

View File

@@ -25,12 +25,12 @@ if GEMINI_API_KEY and not os.getenv("GOOGLE_API_KEY"):
GH_TOKEN = os.getenv("GH_TOKEN")
# Gemini Configuration (May 2026)
GEMINI_API_VERSION = "v1beta"
GEMINI_API_VERSION = "v1"
GEMINI_MODELS = [
"gemini-1.5-flash-latest",
"gemini-1.5-flash",
"gemini-1.5-pro",
"gemini-2.0-flash-exp",
"gemini-1.5-flash-latest"
"gemini-1.5-pro-latest",
"gemini-1.5-pro"
]
TARGET_REPO = "nubenetes/awesome-kubernetes"