SMKRV
376753e001
fix: correct field naming in Gemini API requests from camelCase to snake_case and improve message handling
2025-05-20 01:42:38 +03:00
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
SMKRV
440c734214
Bump release version to v2.1.4
2025-05-19 23:20:27 +03:00
SMKRV
73788373cd
Release v2.1.3
2025-05-19 23:12:55 +03:00
SMKRV
4bfc96019b
fix: DEFAULT_GEMINI_ENDPOINT
2025-05-19 15:53:43 +03:00
SMKRV
2138fc7654
fix: DEFAULT_GEMINI_ENDPOINT
2025-05-19 15:36:58 +03:00
SMKRV
95bd2ebb41
Add support for Google Gemini (thanks to @Azzedde) #5
2025-05-19 15:10:19 +03:00
Azzedde
c003b258f6
Add Gemini API provider support to HA Text AI integration
2025-05-18 13:23:55 +02:00
SMKRV
5ebb9c9c66
fix: max_tokens value
2025-01-29 18:04:13 +03:00
SMKRV
f17c631a79
fix: max_tokens value
2025-01-29 18:02:42 +03:00
SMKRV
bfd64d1122
Release v2.1.1: Token Handling Improvement and DeepSeek Support
...
- Completely reworked token handling mechanism
- Removed custom token calculation logic
- Direct max_tokens passing to LLM APIs
- Added support for DeepSeek provider
- Integrated deepseek-chat and deepseek-reasoner models
Thanks to @estiens for reporting token handling issues and providing valuable feedback (https://github.com/smkrv/ha-text-ai/issues/1 ).
2025-01-28 15:54:48 +03:00
SMKRV
82e1f0c4f9
Release v2.1.0
2024-12-13 00:06:08 +03:00
SMKRV
5c16eee6e4
fix: Read version from manifest.json
2024-12-12 16:03:15 +03:00
SMKRV
e988d445a4
- Fixed version reading from manifest.json implementation
2024-12-11 22:01:01 +03:00
SMKRV
f9bfb9ab7f
fix: correct sw_version syntax in device_info
...
- Fixed version reading from manifest.json implementation
2024-12-11 21:57:27 +03:00
SMKRV
b71083b9bf
bump to version 2.0.9
2024-12-10 17:25:47 +03:00
SMKRV
15c717fcb0
fix: Display only last Q&A in sensor state to prevent data truncation
...
- Show only the latest question and answer in sensor state
- Keep full conversation history in attributes
- Fix truncation issues in Home Assistant UI
- Maintain backwards compatibility
- No configuration changes required
2024-12-10 17:02:48 +03:00
SMKRV
be06fddce1
fix: Display only last Q&A in sensor state to prevent data truncation
...
- Show only the latest question and answer in sensor state
- Keep full conversation history in attributes
- Fix truncation issues in Home Assistant UI
- Maintain backwards compatibility
- No configuration changes required
2024-12-10 16:19:17 +03:00
SMKRV
19d4a93bca
bump to version 2.0.8
2024-12-09 00:41:08 +03:00
SMKRV
fb75c5f44e
bump to version 2.0.9
2024-12-09 00:39:28 +03:00
SMKRV
bacf76e0a9
bump to version 2.0.8-beta
2024-12-06 16:33:46 +03:00
SMKRV
9eb7d8912c
fix: sensor history attribute calculation
2024-12-06 12:26:56 +03:00
SMKRV
d29535245f
Release v2.0.7-beta
2024-12-06 12:00:23 +03:00
SMKRV
ca3ae982b0
feat(performance): Optimize system resources and token estimation
...
- Improve JSON history file processing
- Add memory and disk space validation
- Enhance parallel request handling
- Refine token counting heuristics
2024-12-06 03:14:52 +03:00
SMKRV
c13ef1921d
feat(performance): Optimize system resources and token estimation
...
- Improve JSON history file processing
- Add memory and disk space validation
- Enhance parallel request handling
- Refine token counting heuristics
2024-12-06 02:51:06 +03:00
SMKRV
1480669dc8
icons update
2024-12-04 17:34:19 +03:00
SMKRV
f397bbffe7
Release 2.0.5-beta
2024-12-03 18:29:24 +03:00
SMKRV
f25f2db885
Release v2.0.4-beta
2024-11-29 16:45:43 +03:00
SMKRV
621732ae0a
feat(localization): Expand multilingual support
...
- Added translations for:
* Chinese (zh)
* Serbian (sr)
* Italian (it)
* Hindi (hi)
* Spanish (es)
- Fixed minor bugs
- Improved language coverage
2024-11-29 16:44:21 +03:00
SMKRV
ed85c659be
docs(license): Switch to CC BY-NC-SA 4.0
2024-11-29 16:38:41 +03:00
SMKRV
c37ec7c1dd
Release v2.0.3-beta
2024-11-29 00:54:18 +03:00
SMKRV
3d064f5b9d
Release v2.0.3-beta
2024-11-29 00:15:27 +03:00
SMKRV
2dbae19c41
Release v2.0.2-beta
2024-11-28 23:59:02 +03:00
SMKRV
d3ef31f551
Release v2.0.2-beta
2024-11-28 23:27:39 +03:00
SMKRV
a88b5d01c1
Vesion updated
2024-11-27 16:52:49 +03:00
SMKRV
208074d845
Release v2.0.0-alpha
2024-11-26 01:20:08 +03:00
SMKRV
b862968d01
Release v2.0.0-alpha
2024-11-25 17:31:42 +03:00
SMKRV
29f6860fe1
Release v2.0.0
2024-11-25 17:03:29 +03:00
SMKRV
fa89026e05
Release v2.0.0
2024-11-25 17:00:29 +03:00
SMKRV
094062773a
Release v2.0.0
2024-11-25 16:18:54 +03:00
SMKRV
4cd95813bc
Release v2.0.0
2024-11-25 15:51:08 +03:00
SMKRV
c2064f0b64
Release v2.0.0
2024-11-25 15:42:04 +03:00
SMKRV
fafd927610
Release v2.0.0
2024-11-25 14:59:44 +03:00
SMKRV
7f46380054
Release v2.0.0
2024-11-25 02:05:13 +03:00
SMKRV
351a8b18dd
Release v2.0.0
2024-11-25 02:03:29 +03:00
SMKRV
39833b333f
Release v2.0.0
2024-11-25 01:52:37 +03:00
SMKRV
888a41375b
Release v2.0.0
2024-11-25 01:43:06 +03:00
SMKRV
823abb22e4
Release v2.0.0
2024-11-25 01:20:44 +03:00
SMKRV
a3c88309b4
Release v2.0.0
2024-11-25 01:10:32 +03:00
SMKRV
beebc7e194
Release v2.0.0
2024-11-25 00:58:02 +03:00