Paulus Schoutsen
059c12798d
Drop user prompt from LLMContext ( #146787 )
2025-06-13 22:01:39 -04:00
Denis Shulyaka
199c565bf2
Add Anthropic Claude 4 support ( #145505 )
...
Add Claude 4 support
Co-authored-by: Franck Nijhof <git@frenck.dev>
2025-05-23 10:31:44 -04:00
Allen Porter
8d258871ff
Record Anthropic token statistics in conversation trace ( #143727 )
...
* Record anthopic token statistics in conversation trace
* Add test coverage for output token parsing
2025-04-26 18:04:12 -04:00
Allen Porter
3da77726d0
Allow selection of multiple LLM APIs in Anthropic ( #143190 )
2025-04-19 12:34:51 +02:00
Allen Porter
ca07975ead
Fix Anthropic bug parsing a streaming response with no json ( #142745 )
2025-04-11 17:30:12 +02:00
John Karabudak
85d2e3d006
Fix LLM to speed up prefill ( #141156 )
...
* fix: two minor LLM changes to speed up prefill
- moved the current date/time to the end of the prompt
- started sorting all entities by last_changed
* addressed PR comments
* fixed tests
* reduced scope of try/catch in LLM prompt
* addressed more PR comments
* fixed Anthropic test
* addressed another PR comment
* fixed remainder of tests
2025-03-30 13:30:40 -07:00
Denis Shulyaka
07e7672b78
Anthropic conversation extended thinking support ( #139662 )
...
* Anthropic conversation extended thinking support
* update conversation snapshots
* Add conversation test
* Update openai_conversation snapshots
* Removed metadata
* Removed metadata
* Removed thinking
* cosmetic fix
* combine user messages
* Apply suggestions from code review
* Add tests for chat_log messages conversion
* s/THINKING_BUDGET_TOKENS/THINKING_BUDGET/
* Apply suggestions from code review
* Update tests
* Update homeassistant/components/anthropic/strings.json
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* apply suggestions from code review
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2025-03-14 22:07:59 -04:00
Denis Shulyaka
1786bb9903
Use model list to check anthropic API key ( #139307 )
...
Anthropic model list
2025-03-01 22:28:48 +01:00
Paulus Schoutsen
90fc6ffdbf
Add support for continue conversation in Assist Pipeline ( #139480 )
...
* Add support for continue conversation in Assist Pipeline
* Also forward to ESPHome
* Update snapshot
* And mobile app
2025-02-28 13:15:31 -06:00
Denis Shulyaka
b82886a3e1
Fix anthropic blocking call ( #139299 )
2025-02-26 12:25:59 +00:00
Allen Porter
da1e3c29ed
Update anthropic to use the streaming API ( #138256 )
2025-02-12 01:05:23 +01:00
Allen Porter
ae38f89728
Update anthropic to use the new chatlog API ( #138178 )
...
* Update anthropic to use the new chatlog API
* Remove conversation id logging
* Add back whitespace
* Reduce unnecessary diffs
* Revert diffs to conversation component
* Replace types with union type
2025-02-09 20:42:15 -08:00
Paulus Schoutsen
9679fc7878
Chat session rev2 ( #137209 )
...
* Chat Session rev 2
* Rename session to chat_log
* Simplify typing
* Typing
* Address comments
* Fix anthropic and ollama
2025-02-03 00:05:20 -05:00
epenet
b11b36b523
Add more util aliases to import conventions ( #136153 )
2025-01-21 15:58:23 +01:00
Joost Lekkerkerker
8db63adc11
Bump ruff to 0.9.1 ( #135197 )
2025-01-14 11:46:12 +01:00
epenet
d8b51b4f2c
Avoid unknown error translation strings in anthropic ( #127823 )
2024-10-08 15:59:45 +02:00
epenet
4ceb9b9dbf
Improve type hints in anthropic tests ( #123784 )
2024-08-13 11:59:48 +02:00
Paulus Schoutsen
45ce0fed0a
Reload config entry for anthropic on update ( #123280 )
...
* Reload config entry for anthropic on update
* Fix tests
2024-08-07 12:22:50 +02:00
Denis Shulyaka
262d778a38
Anthropic Claude conversation integration ( #122526 )
...
* Initial commit
* Use add_suggested_values
* Update homeassistant/components/anthropic/conversation.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update strings.json
* Update config_flow.py
* Update config_flow.py
* Fix tests
* Update homeassistant/components/anthropic/conversation.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Removed agent registration
* Moved message_convert inline function outside
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-08-01 22:50:10 +02:00