ParthSareen
16c868a937
Update to have graceful handling and not raise - added tests as well
2024-11-15 11:50:08 -08:00
ParthSareen
7c5c294b6b
Code cleanup + organize and add tests for type serialization
2024-11-14 15:11:50 -08:00
ParthSareen
7dcb598d6f
Test unhappy parse path
2024-11-14 14:47:23 -08:00
ParthSareen
ca16670475
Code cleanup and organization
2024-11-14 14:31:19 -08:00
ParthSareen
f452fab2a3
Add str -> str valid json mapping and add test
2024-11-14 14:02:30 -08:00
ParthSareen
e68700c1f0
Python3.8+ compatibility
2024-11-14 12:31:46 -08:00
ParthSareen
2cc0b40615
Typing fix
2024-11-14 12:16:56 -08:00
ParthSareen
67321a8936
Organization, cleanup, pydantic serialization, update tests
2024-11-14 12:09:18 -08:00
ParthSareen
fe8d1432ea
WIP
2024-11-13 22:59:21 -08:00
ParthSareen
1f089f749e
Stringify return type arrays to not break server
2024-11-13 09:53:27 -08:00
ParthSareen
2efa54a93a
Walrus op for cleanup
2024-11-12 13:47:20 -08:00
ParthSareen
efb775b8ed
Multi-line docstrings and exhaustive tests
2024-11-11 16:36:28 -08:00
ParthSareen
8ec5123eef
Trying stuff out
2024-11-11 15:54:49 -08:00
ParthSareen
97aa167531
WIP trying tests out
2024-11-11 15:12:08 -08:00
ParthSareen
aa20015ef5
Exhaustive type matching
2024-11-11 14:19:18 -08:00
ParthSareen
e5dc2b847f
add annotations import for old tests
2024-11-11 11:14:07 -08:00
ParthSareen
93c7a6351a
wip
2024-11-11 11:11:51 -08:00
ParthSareen
1ef75a77ee
TODOs
2024-11-10 23:32:02 -08:00
ParthSareen
0e5a940d60
Formatting and todos
2024-11-10 23:15:08 -08:00
ParthSareen
8fee892b5a
Add tool parsing and processing
2024-11-10 22:59:54 -08:00
ParthSareen
afe7db65be
Managing multiple type options
2024-11-08 16:56:11 -08:00
ParthSareen
438360339c
WIP tool parsing
2024-11-08 15:47:33 -08:00
Michael Yang
dc38fe4675
Merge pull request #277 from ollama/mxyng/no-head
...
no head request for create blob
2024-11-08 11:20:43 -08:00
Parth Sareen
72052188c3
Fixing empty header + ensuring security ( #313 )
...
* Fixing empty header + ensuring security
2024-11-08 10:03:14 -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
b0da4ff2d8
no head
...
this request is unnecessary since the POST will short circuit the
request if the blob already exists
2024-11-08 09:59:04 -08:00
Michael Yang
0bbc246007
pydantic types
2024-11-08 09:59:03 -08:00
Patrick Devine
eff2afd827
update docs
2024-09-12 16:49:38 -07:00
Oscar Neira
81edab1b64
_stream in async client raises RuntimeError processing HTTP errors ( #266 )
...
Fixes a bug processing errors in async client. When response in _stream has an HTTP error, the process raises a RuntimeError("Attempted to call a sync iterator on an async stream.") due to use of e.response.read() instead of await e.response.aread()
2024-08-29 16:45:57 -07:00
Johannes Binder
d98f646929
IPv6 support ( #262 )
...
* Support IPv6 host addresses
* Add missing tests
* Integrate feedback review to make it generally more stable and remove redundancies
* Remove unused import
* Fix formatting
2024-08-27 16:51:14 -07:00
Ben Plunkert
dfdeb7cef3
Add URL path to client URL in in Client._parse_host() ( #170 )
...
* Add URL path to client URL in in Client._parse_host()
* add tests for url path
* improve URL path handling
* restore trailing space
* remove extraneous path assignment
* Fix url path test
Co-authored-by: Michael Yang <mxyng@pm.me>
---------
Co-authored-by: Ben Plunkert <ben@plunkert.com>
Co-authored-by: Michael Yang <mxyng@pm.me>
2024-08-23 13:09:45 -07: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
royjhan
33c4b61ff9
add insert support to generate endpoint ( #215 )
...
* add suffix
* update fill-in-the-middle example
* keep example
* lint
* variables
2024-07-18 11:04:17 -07:00
royjhan
b0ea6d9e44
Support api/embed ( #208 )
...
* api/embed
* api/embed
* api/embed
* rm legacy
2024-07-18 10:40:30 -07:00
Josh
359c63daa7
integrate tool calls ( #213 )
2024-07-17 09:40:49 -07:00
royjhan
ce56f279e8
Add type overloads to methods ( #181 )
...
* Add type overloads for chat() method in _client.py
* Overloading
* Fix Overload Overlap
* Fix async chat
* Lint
* Reverse
---------
Co-authored-by: Simon Ottenhaus <simon.ottenhaus@kenbun.de>
2024-06-19 16:10:44 -07:00
Michael Yang
d25c4aa1cf
Merge pull request #129 from davep/mark-as-typed
...
Add py.typed to mark the library as typed
2024-06-05 11:59:39 -07:00
Michael Yang
57c597b60e
Merge pull request #158 from tillfalko/main
...
Avoid side effects if chat message contains images
2024-06-05 11:28:41 -07:00
royjhan
d5316d023a
Python API PS ( #177 )
...
* Python API PS
* PS Rename
* Readme
2024-06-05 11:12:32 -07:00
tillfalko
0f8c20a596
Avoid side effects if chat message contains images
2024-05-18 16:48:53 +02: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
Michael Yang
5dc857ea66
Merge pull request #150 from ollama/mxyng/quantization
...
add quantization to create requests
2024-05-10 14:11:38 -07:00
Michael Yang
309007da80
add quantization to create requests
2024-05-10 14:10:37 -07:00
Michael Yang
3b69774f22
Merge pull request #152 from ollama/mxyng/rm-options
...
remove old options
2024-05-10 14:09:46 -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
jingfelix
2ac751fb79
fix: annotation in AsyncClient.embedding
...
Signed-off-by: jingfelix <jingfelix@outlook.com>
2024-05-03 16:29:03 +08:00
Dave Pearson
30090c5508
Add py.typed to mark the library as typed
...
Removes an error like this:
error: Skipping analyzing "ollama":
module is installed, but missing library stubs or py.typed marker [import-untyped]
when running mypy over code that uses the library.
2024-04-25 10:51:30 +01:00
Michael Yang
5b94a8d872
Merge pull request #118 from DSLstandard/fix-content-check
...
fix 'content' check on messages in chat()
2024-04-24 17:12:41 -07:00