Commit Graph

52 Commits

Author SHA1 Message Date
Jeffrey Morgan
dbccf192ac Add image generation support (#616) 2026-01-23 00:33:52 -08:00
Parth Sareen
0008226fda client/types: add logprobs support (#601) 2025-11-12 18:08:42 -08:00
nicole pardal
16f344f635 client/types: update web search and fetch API (#584)
---------

Co-authored-by: ParthSareen <parth.sareen@ollama.com>
2025-09-23 13:27:36 -07:00
Parth Sareen
4d0b81b37a client: add web search and web crawl capabilities (#578) 2025-09-18 16:51:20 -07:00
Michael Yang
a1d04f04f2 feat: add dimensions to embed request (#574) 2025-09-15 17:23:03 -07:00
Devon Rifkin
aa4b476f26 add support for 'high'/'medium'/'low' think values
currently only supported on gpt-oss, but as more models come out with
support like this we'll likely relax the particular values that can be
provided
2025-08-07 14:39:36 -07:00
Parth Sareen
34e98bd237 types: relax type for tools (#550) 2025-08-05 15:59:56 -07:00
Parth Sareen
b23d79d8b5 types: add context_length to ProcessResponse (#538) 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
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) 2025-05-14 19:27:48 -07:00
Michael Yang
5ae5f816bb Merge pull request #445 from ollama/mxyng/hatch
use hatch instead of poetry
2025-05-06 11:03:28 -07:00
Parth Sareen
65f94b4fba types: allow items and defs for tools (#501) 2025-04-16 13:33:51 -07:00
Parth Sareen
8ac9f4da76 types: allow single or multiple types tool property (#499) 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
rylativity
07eec6d517 types: enable passing messages with arbitrary role (#462)
---------

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
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
89e719ab92 chore: bump ruff and ensure imports are sorted (#385)
* chore: upgrade ruff & sort imports
2025-01-14 16:34:16 -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
ParthSareen
f718dab45d Make ruff happy 2025-01-13 15:01:02 -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
Jeffrey Morgan
1066246ab5 fix validation of format field to allow empty strings as it did previously (#369) 2024-12-07 19:37:55 -08:00
Parth Sareen
4b10dee2b2 Structured outputs support with examples (#354) 2024-12-05 15:40:49 -08:00
Parth Sareen
d6528cf731 Fix image serialization for long image string (#348) 2024-11-28 14:12:55 -08:00
Jeffrey Morgan
d4c38978d1 Update ollama/_types.py
Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
2024-11-26 10:41:53 -08:00
Jeffrey Morgan
d8d98e17b2 Update ollama/_types.py
Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
2024-11-26 10:41:50 -08:00
Jeffrey Morgan
ec2c8fdd8d Update ollama/_types.py
Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
2024-11-26 10:41:45 -08:00
Jeffrey Morgan
ea0e0dc692 Update ollama/_types.py
Co-authored-by: Parth Sareen <parth.sareen@ollama.com>
2024-11-26 10:35:57 -08:00
jmorganca
2095fc9107 make subscription methods more consistent with maps 2024-11-23 19:02:28 -08:00
jmorganca
1e22f2e118 add test case for explicit None 2024-11-23 18:22:38 -08:00
jmorganca
00c64332cc check defaults that aren't None too 2024-11-23 18:15:05 -08:00
Michael Yang
c6ade633b8 fix: hasattr checks if attr is None 2024-11-23 16:44:09 -08:00
Parth Sareen
139c89e833 Passing Functions as Tools (#321)
* Functions can now be passed as tools
2024-11-20 15:49:50 -08:00
Parth Sareen
f25834217b Pydantic Fixes and Tests (#311)
* Added SubscriptableBaseModel to the Model classes and added Image codec test

---------

Co-authored-by: Parth Sareen <parth@Parths-MacBook-Pro.local>
2024-11-08 10:02:55 -08:00
Michael Yang
0bbc246007 pydantic types 2024-11-08 09:59:03 -08:00
Denis Shulyaka
8b694bb0f4 Update Message annotations to support tool calls (#227) 2024-07-29 10:39:09 -07:00
Jeel Rupapara
cbf0887573 fix: update name of toolcallfunction parameter (#236) 2024-07-29 10:33:24 -07:00
Josh
359c63daa7 integrate tool calls (#213) 2024-07-17 09:40:49 -07:00
Michael Yang
cb81f522b0 Merge pull request #154 from ollama/done-reason
add done reason to generate type responses
2024-05-10 14:22:03 -07:00
Bruce MacDonald
eaab4778c7 add done reason to generate type responses 2024-05-09 16:47:56 -07:00
Michael Yang
96214c0ffe remove old options 2024-05-09 09:19:35 -07:00
Michael Yang
27f0dfe0ca update response error field to match json response 2024-01-22 09:41:22 -08:00
Michael Yang
64127ee821 parse json error 2024-01-10 17:02:49 -08:00
Michael Yang
7c2ec01d2f docstrings 2024-01-10 17:02:36 -08:00
Michael Yang
f7e6980b1b literal 2024-01-10 16:39:55 -08:00
Michael Yang
7601947a35 request/response errors 2024-01-10 16:39:54 -08:00
Michael Yang
cea391a041 add generate and chat responses 2024-01-10 10:52:50 -08:00