Commit Graph

265 Commits

Author SHA1 Message Date
Ian
d7978cb234
pyproject.toml: add license metadata to package (#526) 2025-07-22 11:44:11 -07:00
Parth Sareen
b23d79d8b5
types: add context_length to ProcessResponse (#538)
Some checks failed
test / test (push) Has been cancelled
test / lint (push) Has been cancelled
2025-07-09 15:40:00 -07:00
Parth Sareen
33488eee06
types/examples: add tool_name to message and examples (#537) 2025-07-09 14:23:33 -07:00
Devon Rifkin
63ca747622
Merge pull request #525 from hwittenborn/main
Some checks failed
test / test (push) Has been cancelled
test / lint (push) Has been cancelled
Remove unused `messages` variable from `thinking-generate` example
2025-05-30 16:14:02 -07:00
Hunter Wittenborn
4c11d507b0
Remove unused messages variable from thinking-generate example 2025-05-30 16:58:16 -05:00
Devon Rifkin
ce6846e4fc
Merge pull request #524 from ollama/drifkin/thinking-support
Some checks are pending
test / test (push) Waiting to run
test / lint (push) Waiting to run
fully add thinking support to `generate()`
2025-05-30 14:32:05 -07:00
Devon Rifkin
e0253ab627 fully add thinking support to generate()
https://github.com/ollama/ollama-python/pull/521 missed some calls
2025-05-30 13:41:23 -07:00
Devon Rifkin
756bd8f31a
Merge pull request #521 from ollama/drifkin/thinking-support
Some checks are pending
test / test (push) Waiting to run
test / lint (push) Waiting to run
add support for thinking
2025-05-29 16:02:56 -07:00
Devon Rifkin
f8c6cd5131 add thinking example to example index 2025-05-27 11:36:45 -07:00
Devon Rifkin
eaad6df5ef add support for thinking
To support https://github.com/ollama/ollama/pull/10584
2025-05-27 00:35:28 -07:00
JRinaldi
5d7c63fae1
types: add capabilities to show response. (#511)
Some checks failed
test / test (push) Has been cancelled
test / lint (push) Has been cancelled
2025-05-14 19:27:48 -07:00
Michael Yang
5ae5f816bb
Merge pull request #445 from ollama/mxyng/hatch
Some checks failed
test / test (push) Has been cancelled
test / lint (push) Has been cancelled
use hatch instead of poetry
2025-05-06 11:03:28 -07:00
Parth Sareen
65f94b4fba
types: allow items and defs for tools (#501)
Some checks failed
test / test (3.10) (push) Has been cancelled
test / test (3.11) (push) Has been cancelled
test / test (3.12) (push) Has been cancelled
test / test (3.13) (push) Has been cancelled
test / test (3.8) (push) Has been cancelled
test / test (3.9) (push) Has been cancelled
test / lint (push) Has been cancelled
2025-04-16 13:33:51 -07:00
Parth Sareen
e33ceb7188
poetry: update dependencies (#505) 2025-04-16 13:33:40 -07:00
Parth Sareen
8ac9f4da76
types: allow single or multiple types tool property (#499)
Some checks failed
test / test (3.10) (push) Has been cancelled
test / test (3.11) (push) Has been cancelled
test / test (3.12) (push) Has been cancelled
test / test (3.13) (push) Has been cancelled
test / test (3.8) (push) Has been cancelled
test / test (3.9) (push) Has been cancelled
test / lint (push) Has been cancelled
2025-04-08 15:05:54 -07:00
Parth Sareen
1b3406887d
types: relax enum type for tool (#498) 2025-04-08 15:05:46 -07:00
Paul.DX
3eaa83781d
docs: Update example links (#461)
Some checks failed
test / test (3.10) (push) Has been cancelled
test / test (3.11) (push) Has been cancelled
test / test (3.12) (push) Has been cancelled
test / test (3.13) (push) Has been cancelled
test / test (3.8) (push) Has been cancelled
test / test (3.9) (push) Has been cancelled
test / lint (push) Has been cancelled
Modify the names and links of the Multimodal with Images
2025-03-31 16:58:04 -07:00
rylativity
07eec6d517
types: enable passing messages with arbitrary role (#462)
Some checks failed
test / test (3.10) (push) Has been cancelled
test / test (3.11) (push) Has been cancelled
test / test (3.12) (push) Has been cancelled
test / test (3.13) (push) Has been cancelled
test / test (3.8) (push) Has been cancelled
test / test (3.9) (push) Has been cancelled
test / lint (push) Has been cancelled
---------

Co-authored-by: Ryan Stewart <ryanstewart@Ryans-MacBook-Pro.local>
Co-authored-by: Gabe Goodhart <gabe.l.hart@gmail.com>
2025-03-20 13:46:40 -07:00
Parth Sareen
6b235b2d60
add SECURITY.md (#479) 2025-03-20 13:25:36 -07:00
ddbit
aec125c773
examples: update tools.py to handle type casting from tool arguments (#443)
---------

Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
2025-02-14 09:50:47 -08:00
Parth Sareen
8d0d0e483d
client: add support for passing in Image type to generate (#408) 2025-02-14 09:44:43 -08:00
Parth Sareen
0561f42701
chore: add tests for checking SHA in blob request (#425) 2025-01-21 10:20:11 -08:00
dependabot[bot]
7e64093df0
bump httpx from 0.27.2 to 0.28.1 (#365)
bump httpx from 0.27.2 to 0.28.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: ParthSareen <parth.sareen@ollama.com>
2025-01-20 11:03:44 -08:00
Aarni Koskela
f7e23ddb93
choe: run tests on main (#422)
* Make tests actually run on `main` (and don't ignore example/readme changes)
2025-01-17 09:48:47 -08:00
Parth Sareen
967fd657f1
client: improve error messaging on connection failure (#398)
*iImprove error messaging on connection failure
2025-01-16 13:55:17 -08:00
Aarni Koskela
12d6842f32
fix: don't run lints on all python versions (#400) 2025-01-16 11:24:23 -08:00
Jeffrey Morgan
7a6ab044c6
Fix create examples (#421) 2025-01-15 22:43:44 -08:00
Samhita Alla
eefe5c9666
remove sha256 as it's already available in the digest (#420) 2025-01-15 22:31:30 -08:00
Aarni Koskela
89e719ab92
chore: bump ruff and ensure imports are sorted (#385)
* chore: upgrade ruff & sort imports
2025-01-14 16:34:16 -08:00
Parth Sareen
02495ffd77
example: update create example (#418) 2025-01-13 18:00:28 -08:00
Patrick Devine
2cad1f5428
Merge pull request #417 from ollama/pdevine/create-api
add create api changes
2025-01-13 17:27:25 -08:00
ParthSareen
d9746ead51 fix stuff 2025-01-13 17:25:49 -08:00
ParthSareen
c7d4f1674a Revert "make 3.8 happy"
This reverts commit ba27e71a20.
2025-01-13 17:23:38 -08:00
ParthSareen
ba27e71a20 make 3.8 happy 2025-01-13 17:17:10 -08:00
ParthSareen
fbf94d8660 Update poetry plugin + generate lock 2025-01-13 17:08:24 -08:00
Patrick Devine
2434443b88 whackamole 2025-01-13 16:57:17 -08:00
Patrick Devine
2be0bcf92a python <3.9 errors 2025-01-13 16:51:59 -08:00
Patrick Devine
fc8585eabd feed ruff 2025-01-13 16:42:31 -08:00
Patrick Devine
f5c8ee0a3e fix async client 2025-01-13 15:54:16 -08:00
Patrick Devine
a0388b2e32 unhide create_blob 2025-01-13 15:22:26 -08:00
ParthSareen
f718dab45d Make ruff happy 2025-01-13 15:01:02 -08:00
Patrick Devine
4dec73e8be add unit tests 2025-01-13 14:53:10 -08:00
ParthSareen
4f9fb88137 Add custom serializer for CreateRequest + tests 2025-01-13 11:03:18 -08:00
ParthSareen
bee11029f7 Model serializer to handler from keyword 2025-01-12 23:19:44 -08:00
Patrick Devine
427b0c6291 create api 2025-01-12 22:48:16 -08:00
Parth Sareen
ee349ecc6d
bugfix: fix passing Image type in messages for chat (#390)
---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
2024-12-29 14:43:07 -08:00
Tomoya Fujita
7d1e002be9
examples: use type hinting generics in standard collections for structured outputs (#389)
---------

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: ParthSareen <parth.sareen@ollama.com>
2024-12-20 13:31:21 -08:00
Michael Yang
4daf4afdb6
Merge pull request #384 from akx/export-image-model
fix: export Image model
2024-12-17 12:59:50 -08:00
Aarni Koskela
9057705bc0 fix: export Image model
Allows construction of `Message(..., images=Image(value=...))` without having to import from `._types`
2024-12-17 13:31:25 +02:00
Parth Sareen
70dd0b7e63
fix: structured outputs example (#364) 2024-12-07 20:01:21 -08:00