Files
ha-text-ai/custom_components/ha_text_ai
SMKRV b6e73e847d fix(api_client): correct Google Gemini API integration
- Change JSON field names from camelCase to snake_case as required by Gemini API
  (generation_config, max_output_tokens, system_instruction)
- Improve message handling to ensure proper role alternation (user/model)
- Add safety checks for empty contents and ensure first message is always from user
- Implement robust error handling and response parsing
- Handle edge cases where candidatesTokenCount might be returned as a list

Fixes #6
2025-05-20 01:16:41 +03:00
..
2024-12-04 17:34:19 +03:00
2025-05-19 23:12:55 +03:00
2025-05-19 23:12:55 +03:00
2025-05-19 23:12:55 +03:00
2025-05-19 23:20:27 +03:00
2025-01-29 18:04:13 +03:00