From 29f6e7dff09e5b6dddbedab88c0257415e62acb5 Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Fri, 15 May 2026 22:23:18 +0200 Subject: [PATCH] fix(gemini): switch to API v1 to avoid 404s and fix missing stats in AgenticCurator --- src/agentic_curator.py | 2 ++ src/config.py | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/agentic_curator.py b/src/agentic_curator.py index 221fa0c5..e0132acc 100644 --- a/src/agentic_curator.py +++ b/src/agentic_curator.py @@ -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: """ diff --git a/src/config.py b/src/config.py index 9287431d..e5e0743e 100644 --- a/src/config.py +++ b/src/config.py @@ -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"