Mason Daugherty
791c0e2e8f
ollama: release 0.3.4 ( #31928 )
2025-07-08 16:44:36 -04:00
Mason Daugherty
1f829aacf4
ollama[patch]: ruff fixes and rules ( #31924 )
...
* bump ruff deps
* add more thorough ruff rules
* fix said rules
2025-07-08 13:42:19 -04:00
Mason Daugherty
572020c4d8
ollama: add validate_model_on_init, catch more errors ( #31784 )
...
* Ensure access to local model during `ChatOllama` instantiation
(#27720 ). This adds a new param `validate_model_on_init` (default:
`true`)
* Catch a few more errors from the Ollama client to assist users
2025-07-03 11:07:11 -04:00
Mason Daugherty
2fb27b63f5
ollama: update tests, docs ( #31736 )
...
- docs: for the Ollama notebooks, improve the specificity of some links,
add `homebrew` install info, update some wording
- tests: reduce number of local models needed to run in half from 4 → 2
(shedding 8gb of required installs)
- bump deps (non-breaking) in anticipation of upcoming "thinking" PR
2025-06-25 20:13:20 +00:00
Mason Daugherty
8878a7b143
docs: ollama nits ( #31714 )
2025-06-24 13:19:15 -04:00
ccurme
a401d7e52a
ollama: release 0.3.3 ( #31253 )
2025-05-15 16:24:04 -04:00
Sydney Runkle
7e926520d5
packaging: remove Python upper bound for langchain and co libs ( #31025 )
...
Follow up to https://github.com/langchain-ai/langsmith-sdk/pull/1696 ,
I've bumped the `langsmith` version where applicable in `uv.lock`.
Type checking problems here because deps have been updated in
`pyproject.toml` and `uv lock` hasn't been run - we should enforce that
in the future - goes with the other dependabot todos :).
2025-04-28 14:44:28 -04:00
rylativity
dbf9986d44
langchain-ollama (partners) / langchain-core: allow passing ChatMessages to Ollama (including arbitrary roles) ( #30411 )
...
Replacement for PR #30191 (@ccurme)
**Description**: currently, ChatOllama [will raise a value error if a
ChatMessage is passed to
it](https://github.com/langchain-ai/langchain/blob/master/libs/partners/ollama/langchain_ollama/chat_models.py#L514 ),
as described
https://github.com/langchain-ai/langchain/pull/30147#issuecomment-2708932481 .
Furthermore, ollama-python is removing the limitations on valid roles
that can be passed through chat messages to a model in ollama -
https://github.com/ollama/ollama-python/pull/462#event-16917810634 .
This PR removes the role limitations imposed by langchain and enables
passing langchain ChatMessages with arbitrary 'role' values through the
langchain ChatOllama class to the underlying ollama-python Client.
As this PR relies on [merged but unreleased functionality in
ollama-python](
https://github.com/ollama/ollama-python/pull/462#event-16917810634 ), I
have temporarily pointed the ollama package source to the main branch of
the ollama-python github repo.
Format, lint, and tests of new functionality passing. Need to resolve
issue with recently added ChatOllama tests. (Now resolved)
**Issue**: resolves #30122 (related to ollama issue
https://github.com/ollama/ollama/issues/8955 )
**Dependencies**: no new dependencies
[x] PR title
[x] PR message
[x] Lint and test: format, lint, and test all running successfully and
passing
---------
Co-authored-by: Ryan Stewart <ryanstewart@Ryans-MacBook-Pro.local >
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-04-18 10:07:07 -04:00
ccurme
ca39680d2a
ollama: release 0.3.2 ( #30865 )
2025-04-16 09:14:57 -04:00
ccurme
a2bec5f2e5
ollama: release 0.3.1 ( #30716 )
2025-04-07 20:31:25 +00:00
ccurme
e8e3b2bfae
ollama: release 0.3.0 ( #30420 )
2025-03-21 15:50:08 +00:00
Lance Martin
46d6bf0330
ollama[minor]: update default method for structured output ( #30273 )
...
From function calling to Ollama's [dedicated structured output
feature](https://ollama.com/blog/structured-outputs ).
---------
Co-authored-by: Chester Curme <chester.curme@gmail.com >
2025-03-18 12:44:22 -04:00
Erick Friis
1a225fad03
multiple: fix uv path deps ( #29790 )
...
file:// format wasn't working with updates - it doesn't install as an
editable dep
move to tool.uv.sources with path= instead
2025-02-13 21:32:34 +00:00
ccurme
d172984c91
infra: migrate to uv ( #29566 )
2025-02-06 13:36:26 -05:00