mirror of
https://github.com/zhouxiaoka/autoclip.git
synced 2026-09-03 06:24:14 +08:00
google-generativeai is deprecated and no longer maintained. Switch GeminiProvider to the unified google-genai SDK: - genai.configure() + GenerativeModel(...).generate_content(...) → genai.Client(api_key=...).models.generate_content(model=..., contents=...) - max-tokens hint now mapped onto types.GenerateContentConfig - requirements.txt: google-generativeai>=0.3.0 → google-genai>=1.0.0 - install_llm_dependencies.py: same package rename Verified the new SDK exposes Client + models.generate_content + GenerateContentConfig, and the module parses clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>