mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-05-22 17:13:42 +00:00
fix(gemini): switch to API v1 to avoid 404s and fix missing stats in AgenticCurator
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user