Michael Yang
a92f111fc8
Merge pull request #276 from ollama/mxyng/pydantic
...
add pydantic for validation and serialization
2024-11-08 11:20:28 -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
Parth Sareen
a7571423d3
Update requirements.txt and poetry.lock ( #315 )
...
* Update requirements.txt and poetry.lock
2024-11-07 14:46:41 -08:00
dependabot[bot]
ebe332b29d
Merge pull request #281 from ollama/dependabot/pip/ruff-0.6.5
2024-09-19 16:37:37 +00:00
dependabot[bot]
9bcd0d6b33
Merge pull request #278 from ollama/dependabot/pip/pytest-8.3.3
2024-09-19 16:37:28 +00:00
Michael Yang
f3e72b6c4f
update pyproject.toml ( #284 )
2024-09-18 16:34:54 -07:00
Michael Yang
61c8d0d440
add basic delete/copy tests ( #275 )
2024-09-18 12:35:27 -07:00
dependabot[bot]
7fda5c9dae
Bump ruff from 0.6.3 to 0.6.5
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.6.3 to 0.6.5.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.3...0.6.5 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-13 22:26:57 +00:00
Patrick Devine
1ec88ed994
Merge pull request #216 from ollama/royh/embed-docs
...
Deprecate embeddings from docs in favor of embed
2024-09-12 17:14:07 -07:00
royjhan
a26537c188
update docs
2024-09-12 17:10:29 -07:00
Patrick Devine
eff2afd827
update docs
2024-09-12 16:49:38 -07:00
dependabot[bot]
ccf8af3aaa
Bump pytest from 8.3.2 to 8.3.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.2 to 8.3.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/8.3.2...8.3.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-10 22:55:03 +00:00
dependabot[bot]
89e8b74f1e
Merge pull request #267 from ollama/dependabot/pip/ruff-0.6.3
2024-08-30 16:15:14 +00: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
dependabot[bot]
5f51129d25
Bump ruff from 0.6.2 to 0.6.3
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.6.2 to 0.6.3.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.6.2...0.6.3 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 22:46:47 +00: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
dependabot[bot]
981015cfb8
Merge pull request #261 from ollama/dependabot/pip/ruff-0.6.2
2024-08-27 23:26:36 +00:00
dependabot[bot]
9c34d810ab
Bump ruff from 0.5.5 to 0.6.2
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.5.5 to 0.6.2.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.5...0.6.2 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-27 23:24:40 +00:00
dependabot[bot]
9f2832d2ed
Merge pull request #260 from ollama/dependabot/pip/pytest-asyncio-0.24.0
2024-08-27 23:23:43 +00:00
dependabot[bot]
e220e46320
Merge pull request #252 from ollama/dependabot/pip/pytest-httpserver-1.1.0
2024-08-27 23:23:40 +00: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
dependabot[bot]
9e6726e28a
Bump pytest-asyncio from 0.23.8 to 0.24.0
...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) from 0.23.8 to 0.24.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.23.8...v0.24.0 )
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 22:49:36 +00:00
dependabot[bot]
10d0ff2b3a
Bump pytest-httpserver from 1.0.12 to 1.1.0
...
Bumps [pytest-httpserver](https://github.com/csernazs/pytest-httpserver ) from 1.0.12 to 1.1.0.
- [Release notes](https://github.com/csernazs/pytest-httpserver/releases )
- [Changelog](https://github.com/csernazs/pytest-httpserver/blob/master/CHANGES.rst )
- [Commits](https://github.com/csernazs/pytest-httpserver/compare/1.0.12...1.1.0 )
---
updated-dependencies:
- dependency-name: pytest-httpserver
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 22:13:10 +00: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
dependabot[bot]
cd4fbfc2bc
Merge pull request #224 from ollama/dependabot/pip/pytest-httpserver-1.0.12
2024-07-29 16:56:39 +00:00
dependabot[bot]
d2da64f253
Merge pull request #230 from ollama/dependabot/pip/ruff-0.5.5
2024-07-29 16:55:56 +00:00
dependabot[bot]
ae2bdbf3cd
Merge pull request #231 from ollama/dependabot/pip/pytest-8.3.2
2024-07-29 16:55:19 +00:00
Jeffrey Morgan
60d292a98d
update to llama3.1 ( #237 )
2024-07-29 09:55:02 -07:00
dependabot[bot]
ab7e600b95
Bump pytest from 8.2.2 to 8.3.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.2.2 to 8.3.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/8.2.2...8.3.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 22:57:09 +00:00
dependabot[bot]
8e3a8febba
Bump ruff from 0.5.2 to 0.5.5
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.5.2 to 0.5.5.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/0.5.2...0.5.5 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 22:56:58 +00:00
dependabot[bot]
6025c360da
Bump pytest-httpserver from 1.0.10 to 1.0.12
...
Bumps [pytest-httpserver](https://github.com/csernazs/pytest-httpserver ) from 1.0.10 to 1.0.12.
- [Release notes](https://github.com/csernazs/pytest-httpserver/releases )
- [Changelog](https://github.com/csernazs/pytest-httpserver/blob/master/CHANGES.rst )
- [Commits](https://github.com/csernazs/pytest-httpserver/compare/1.0.10...1.0.12 )
---
updated-dependencies:
- dependency-name: pytest-httpserver
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-22 22:32:00 +00:00
dependabot[bot]
f62eb97a4a
Merge pull request #217 from ollama/dependabot/pip/pytest-asyncio-0.23.8
2024-07-18 18:32:48 +00:00
dependabot[bot]
b498ab3451
Merge pull request #211 from ollama/dependabot/pip/ruff-0.5.2
2024-07-18 18:32:37 +00:00
dependabot[bot]
a49c9860b1
Merge pull request #203 from ollama/dependabot/pip/pillow-10.4.0
2024-07-18 18:32:29 +00: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
dependabot[bot]
2cb796cbf5
Bump pytest-asyncio from 0.23.7 to 0.23.8
...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) from 0.23.7 to 0.23.8.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.23.7...v0.23.8 )
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-17 22:08:29 +00:00
Josh
359c63daa7
integrate tool calls ( #213 )
2024-07-17 09:40:49 -07:00
dependabot[bot]
222c2079c2
Bump ruff from 0.4.7 to 0.5.2
...
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.4.7 to 0.5.2.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md )
- [Commits](https://github.com/astral-sh/ruff/compare/v0.4.7...0.5.2 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 22:25:20 +00:00
dependabot[bot]
49568d5e85
Bump pillow from 10.3.0 to 10.4.0
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 10.3.0 to 10.4.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/10.3.0...10.4.0 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 23:00:03 +00:00
Jeffrey Morgan
1a15742705
Update README.md
2024-06-21 22:00:54 -04: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
royjhan
982d65fea0
Simple Example ( #179 )
2024-06-18 13:23:07 -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
Dave Pearson
fa7bf7cbd1
Revert explicit inclusion of py.typed
2024-06-05 19:43:37 +01:00
dependabot[bot]
04d102b406
Merge pull request #178 from ollama/dependabot/pip/pytest-8.2.2
2024-06-05 18:36:42 +00:00