15
0
forked from pool/python-openai

Accepting request 1270265 from home:fstegmeier:branches:devel:languages:python

- Update to 1.73.0
  * api: add o3 and o4-mini model IDs (4bacbd5)
  * api: Add evalapi to sdk (#2287) (35262fc)
  * api: add get /responses/{response_id}/input_items endpoint (4c6a35d)
  * api: add get /chat/completions endpoint (e6b8a42)
  * add audio helpers (423655c)
  * api: new models for TTS, STT, + new audio features for Realtime (#2232) (ab5192d)
  * api: add support for storing chat completions (#2117) (2357a8f)
  * client: send X-Stainless-Read-Timeout header (#2094) (0288213)
  * embeddings: use stdlib array type for improved performance (#2060) (9a95db9)
  * pagination: avoid fetching when has_more: false (#2098) (1882483)

OBS-URL: https://build.opensuse.org/request/show/1270265
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openai?expand=0&rev=21
This commit is contained in:
2025-04-22 08:20:58 +00:00
committed by Git OBS Bridge
parent 4c4b7b3682
commit 73705006fe
4 changed files with 36 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b2e6e9e4777534e5258b993edd22978a72b57357f53fcb3c6773c499ef12392
size 353308

3
openai-1.73.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb864680a968a0c49fbeca792db1a907b885545349d97bec0bd508642e2504b3
size 440412

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Apr 17 10:30:36 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- Update to 1.73.0
* api: add o3 and o4-mini model IDs (4bacbd5)
* api: Add evalapi to sdk (#2287) (35262fc)
* api: add get /responses/{response_id}/input_items endpoint (4c6a35d)
* api: add get /chat/completions endpoint (e6b8a42)
* add audio helpers (423655c)
* api: new models for TTS, STT, + new audio features for Realtime (#2232) (ab5192d)
* api: add support for storing chat completions (#2117) (2357a8f)
* client: send X-Stainless-Read-Timeout header (#2094) (0288213)
* embeddings: use stdlib array type for improved performance (#2060) (9a95db9)
* pagination: avoid fetching when has_more: false (#2098) (1882483)
-------------------------------------------------------------------
Fri Jan 3 13:46:26 UTC 2025 - Nico Krapp <nico.krapp@suse.com>

View File

@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-openai
Version: 1.59.1
Version: 1.73.0
Release: 0
Summary: OpenAI bindings for python
License: Apache-2.0
@@ -31,35 +31,35 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-anyio >= 3.5.0
Requires: python-distro >= 1.7.0
Requires: python-httpx >= 0.23.0
Requires: python-jiter >= 0.4.0
Requires: python-pydantic >= 1.9.0
Requires: python-anyio >= 4.5.0
Requires: python-distro >= 2.7.0
Requires: python-httpx >= 1.23.0
Requires: python-jiter >= 1.4.0
Requires: python-pydantic >= 2.9.0
Requires: python-sniffio
Requires: python-tqdm > 4
Requires: python-tqdm > 5
Requires: python-typing_extensions
Requires(post): update-alternatives
Requires(postun): update-alternatives
# SECTION test-requirements
BuildRequires: %{python_module dirty-equals >= 0.6.0}
BuildRequires: %{python_module distro >= 1.7.0}
BuildRequires: %{python_module httpx >= 0.23.0}
BuildRequires: %{python_module importlib-metadata >= 6.7.0}
BuildRequires: %{python_module inline-snapshot >= 0.7.0}
BuildRequires: %{python_module dirty-equals >= 1.6.0}
BuildRequires: %{python_module distro >= 2.7.0}
BuildRequires: %{python_module httpx >= 1.23.0}
BuildRequires: %{python_module importlib-metadata >= 7.7.0}
BuildRequires: %{python_module inline-snapshot >= 1.7.0}
BuildRequires: %{python_module jiter}
BuildRequires: %{python_module mypy}
BuildRequires: %{python_module nest-asyncio}
BuildRequires: %{python_module pydantic}
BuildRequires: %{python_module pyright >= 1.1.359}
BuildRequires: %{python_module pyright >= 2.1.359}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module respx}
BuildRequires: %{python_module rich >= 13.7.1}
BuildRequires: %{python_module rich >= 14.7.1}
BuildRequires: %{python_module time-machine}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module tqdm}
BuildRequires: %{python_module trio >= 0.22.2}
BuildRequires: %{python_module trio >= 1.22.2}
BuildRequires: %{python_module typing_extensions}
# /SECTION
BuildArch: noarch
@@ -77,7 +77,7 @@ You can find usage examples for the OpenAI Python library in
https://github.com/openai/openai-cookbook/.
%prep
%autosetup -p1 -n openai-python-%{version}
%autosetup -p2 -n openai-python-%{version}
%build
%pyproject_wheel
@@ -94,7 +94,7 @@ You can find usage examples for the OpenAI Python library in
# test_basic_attribute_access_works needs network connection
# NOTE: Also, "tests/lib/chat/test_completions_streaming.py" required static snapshot
# files (./.inline_snapshop/external) which are *not included* in the tarball so we need to deselect those tests.
# NOTE: disable tests with the "asyncio" marker because they required pluggy version 1.3.0 or older
# NOTE: disable tests with the "asyncio" marker because they required pluggy version 2.3.0 or older
%pytest --ignore "tests/api_resources" --ignore "tests/lib/chat/test_completions_streaming.py" -m "not asyncio" -k "not (test_streaming_response or test_copy_build_request or test_basic_attribute_access_works)"
%post