Commit Graph

167 Commits

Author SHA1 Message Date
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
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
dependabot[bot]
74db547ca4
Merge pull request #162 from ollama/dependabot/pip/pytest-asyncio-0.23.7 2024-06-05 18:13:54 +00:00
royjhan
d5316d023a
Python API PS (#177)
* Python API PS

* PS Rename

* Readme
2024-06-05 11:12:32 -07:00
dependabot[bot]
14d7f8c1b7
Merge pull request #172 from ollama/dependabot/pip/ruff-0.4.7 2024-06-05 18:10:23 +00:00
dependabot[bot]
b45848a9cf
Bump pytest from 8.2.0 to 8.2.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.0 to 8.2.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.0...8.2.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-04 22:21:10 +00:00
dependabot[bot]
4fb909db7b
Bump ruff from 0.4.3 to 0.4.7
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.3 to 0.4.7.
- [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.3...v0.4.7)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-31 22:22:27 +00:00
dependabot[bot]
0824044330
---
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-05-20 22:48:40 +00: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
Michael Yang
00eafed0fa
Merge pull request #135 from veinkr/main
Update README.md link still point legacy url
2024-05-08 13:13:15 -07:00
Michael Yang
a8cb34e0ec
Merge pull request #138 from TitanStar73/patch-1
Update README.md
2024-05-08 13:13:06 -07:00
dependabot[bot]
2b66adebef
Merge pull request #140 from ollama/dependabot/pip/pytest-8.2.0 2024-05-08 20:10:43 +00:00