Commit graph

19 commits

Author SHA1 Message Date
Franck Nijhof
22ebc654a7
Update ollama to 0.3.3 (#126953) 2024-09-27 20:45:10 +02:00
Richard Kroegel
ef8fc3913e
Fix ollama blocking on load_default_certs (#125012)
* Fix ollama blocking on load_default_certs

* Use get_default_context instead of client_context
2024-09-01 17:35:55 +02:00
Allen Porter
3304e27fa3
Add ollama context window size configuration (#124555)
* Add ollama context window size configuration

* Set higher max context size
2024-08-25 21:22:57 +02:00
Paulus Schoutsen
933fba84a9
Reload conversation entries on update (#123279) 2024-08-07 11:18:48 +02:00
Paulus Schoutsen
4a06e20318
Ollama implement CONTROL supported feature (#123049) 2024-08-02 12:31:31 +02:00
Allen Porter
4f5eab4646
Improve quality of ollama tool calling by repairing arguments (#122749)
* Improve quality of ollama function calling by repairing function call arguments

* Fix formatting of the tests

* Run ruff format on ollama conversation

* Add test for non-string arguments
2024-07-31 14:37:39 +02:00
Denis Shulyaka
5a04d982d9
Bump ollama to 0.3.1 (#122866) 2024-07-31 09:35:45 +02:00
Denis Shulyaka
4b2073ca59
Add LLM tools support for Ollama (#120454)
* Add LLM tools support for Ollama

* fix tests

* coverage

* Separate call for tool parameters

* Fix example

* hint on parameters schema if LLM forgot to request it

* Switch to native tool call functionality

* Fix tests

* Fix tools list

* update strings and default model

* Ignore mypy error until fixed upstream

* Ignore mypy error until fixed upstream

* Add missing prompt part

* Update default model
2024-07-28 18:19:53 -07:00
Michael Hansen
3ba2a0518e
Switch to official ollama library, update models (#122471)
* Switch to mainstream ollama library, update models

* Fix mypy error
2024-07-23 10:57:54 -05:00
srwareham
76bdc4f5c4
Add configurable keep_alive to Ollama integration, change default to 5m (#119341)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2024-07-07 16:38:01 +02:00
Allen Porter
89e2c57da6
Add conversation agent debug tracing (#118124)
* Add debug tracing for conversation agents

* Minor cleanup
2024-05-25 14:16:51 -04:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
Allen Porter
9b4099950c
Cleanup OpenAI and Ollama conversation entities (#116714) 2024-05-03 10:59:08 -04:00
Allen Porter
f1dda8ef63
Add Ollama Conversation Agent Entity (#116363)
* Add ConversationEntity to OLlama integration

* Add assist_pipeline dependencies
2024-04-29 10:15:46 -04:00
Michael Hansen
b3124aa7ed
Update Ollama model names list (#116172) 2024-04-25 20:35:29 +02:00
J. Nick Koston
0bd4064212
Update ollama config_flow task to use eager_start (#115455)
The test now adds a delay because it finished too fast
2024-04-13 16:54:21 -04:00
J. Nick Koston
166910f587
Make eager_start default to True for async_create_background_task (#114996) 2024-04-06 09:53:50 -10:00
Michael Hansen
b8e9a78d6f
Add more Ollama models (#114339)
Add more models
2024-03-27 18:19:34 -04:00
Michael Hansen
72fed878b4
Add Ollama conversation agent (#113962)
* Add ollama conversation agent

* Change iot class

* Much better default template

* Slight adjustment to prompt

* Make casing consistent

* Switch to ollama Python fork

* Add prompt to tests

* Rename to "ollama"

* Download models in config flow

* Update homeassistant/components/ollama/config_flow.py

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-03-26 16:15:20 -05:00