Files
autoclip/backend
周小舟 4fa9b62fcf refactor: migrate Gemini provider to the new google-genai SDK
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>
2026-05-30 17:28:09 +08:00
..
2025-08-06 12:01:36 +08:00
2025-08-03 01:55:46 +08:00
2025-08-06 15:51:06 +08:00
2025-08-03 01:55:46 +08:00