- Python SDK Changes:
mistral.beta.conversations.start():
request.inputs.[array].[] Changed Breaking
response Changed Breaking
mistral.beta.conversations.list(): response.[] Changed Breaking
mistral.beta.conversations.get(): response Changed Breaking
mistral.beta.conversations.append():
request.inputs.[array].[] Changed Breaking
response Changed Breaking
mistral.beta.conversations.get_history(): response Changed Breaking
mistral.beta.conversations.get_messages(): response Changed Breaking
mistral.beta.conversations.restart():
request.inputs.[array].[] Changed Breaking
response Changed Breaking
mistral.beta.conversations.start_stream():
request.inputs.[array].[] Changed Breaking
response.[].data Changed Breaking
mistral.beta.conversations.append_stream():
request.inputs.[array].[] Changed Breaking
response.[].data Changed Breaking
mistral.beta.conversations.restart_stream():
request.inputs.[array].[] Changed Breaking
response.[].data Changed Breaking
mistral.beta.agents.create(): response.object Changed Breaking
mistral.beta.agents.list(): response.[].object Changed Breaking
mistral.beta.agents.get(): response.object Changed Breaking
mistral.beta.agents.update(): response.object Changed Breaking
mistral.beta.agents.update_version(): response.object Changed Breaking
mistral.beta.agents.list_versions(): response.[].object Changed Breaking
mistral.beta.agents.get_version(): response.object Changed Breaking
mistral.chat.complete():
request.messages.[] Changed Breaking
response.choices.[].message Changed Breaking
mistral.chat.stream():
request.messages.[] Changed Breaking
response.[].data.choices.[].delta.content.[array].[] Changed Breaking
mistral.fim.complete(): response.choices.[].message Changed Breaking
mistral.fim.stream(): response.[].data.choices.[].delta.content.[array].[] Changed Breaking
mistral.agents.complete():
request.messages.[] Changed Breaking
response.choices.[].message Changed Breaking
mistral.agents.stream():
request.messages.[] Changed Breaking
response.[].data.choices.[].delta.content.[array].[] Changed Breaking
mistral.classifiers.moderate_chat():
request.inputs.[array].[] Changed Breaking
mistral.classifiers.classify_chat():
request.inputs.[inputs].messages.[] Changed Breaking
mistral.ocr.process(): request.document Changed Breaking
mistral.audio.transcriptions.complete(): response.segments.[].type Changed Breaking
mistral.audio.transcriptions.stream(): response.[].data Changed Breaking
- Update to 1.12.3:
- Python SDK Changes:
mistral.fine-tuning.jobs.create():
request Changed Breaking
response Changed Breaking
mistral.models.update(): response Changed Breaking
mistral.models.archive(): response.object Changed Breaking
mistral.models.unarchive(): response.object Changed Breaking
mistral.batch.jobs.cancel(): response.object Changed Breaking
mistral.batch.jobs.get(): response.object Changed Breaking
mistral.batch.jobs.create(): response.object Changed Breaking
mistral.batch.jobs.list():
request.order_by Added
response Changed Breaking
mistral.fine-tuning.jobs.start(): response Changed Breaking
mistral.fine-tuning.jobs.cancel(): response Changed Breaking
mistral.fine-tuning.jobs.get(): response Changed Breaking
mistral.fine-tuning.jobs.list(): response Changed Breaking
mistral.beta.agents.list():
request.search Added
response.[].version_message Added
mistral.beta.agents.get_version(): response.version_message Added
mistral.beta.agents.list_versions(): response.[].version_message Added
mistral.beta.agents.update_version(): response.version_message Added
mistral.beta.agents.update():
request.version_message Added
response.version_message Added
mistral.beta.agents.get(): response.version_message Added
mistral.beta.agents.delete_version_alias(): Added
mistral.beta.agents.create():
request.version_message Added
response.version_message Added
- Update to 1.11.1:
- Python SDK Changes:
mistral.beta.agents.list_versions(): Added
mistral.beta.agents.get_version(): Added
mistral.ocr.process(): request.document_annotation_prompt Added
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-mistralai?expand=0&rev=3
96 lines
3.3 KiB
RPMSpec
96 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package python-mistralai
|
|
#
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-mistralai
|
|
Version: 1.12.4
|
|
Release: 0
|
|
Summary: Python Client SDK for the Mistral AI API
|
|
License: Apache-2.0
|
|
URL: https://github.com/mistralai/client-python
|
|
Source0: https://files.pythonhosted.org/packages/source/m/mistralai/mistralai-%{version}.tar.gz
|
|
Source99: python-mistralai.rpmlintrc
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-PyYAML >= 6.0.2
|
|
Requires: python-eval-type-backport >= 0.2.0
|
|
Requires: python-httpx >= 0.28.1
|
|
Requires: python-invoke >= 2.2.0
|
|
Requires: python-opentelemetry-api
|
|
Requires: python-opentelemetry-exporter-otlp-proto-http
|
|
Requires: python-opentelemetry-sdk
|
|
Requires: python-opentelemetry-semantic-conventions
|
|
Requires: python-pydantic >= 2.10.3
|
|
Requires: python-python-dateutil >= 2.8.2
|
|
Requires: python-typing-inspection >= 0.4.0
|
|
Suggests: python-authlib >= 1.5.2
|
|
Suggests: python-google-auth >= 2.27.0
|
|
Suggests: python-griffe >= 1.7.3
|
|
Suggests: python-mcp >= 1.0
|
|
Suggests: python-requests >= 2.32.3
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module PyYAML >= 6.0.2}
|
|
BuildRequires: %{python_module eval-type-backport >= 0.2.0}
|
|
BuildRequires: %{python_module httpx >= 0.28.1}
|
|
BuildRequires: %{python_module invoke >= 2.2.0}
|
|
BuildRequires: %{python_module opentelemetry-api >= 1.33.1}
|
|
BuildRequires: %{python_module opentelemetry-exporter-otlp-proto-http >= 1.37.0}
|
|
BuildRequires: %{python_module opentelemetry-sdk >= 1.33.1}
|
|
BuildRequires: %{python_module opentelemetry-semantic-conventions >= 0.59b0}
|
|
BuildRequires: %{python_module pydantic >= 2.10.3}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil >= 2.8.2}
|
|
BuildRequires: %{python_module typing-inspection >= 0.4.0}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
# Mistral Python Client
|
|
|
|
Before you begin, you will need a Mistral AI API key.
|
|
|
|
Mistral AI API: Our Chat Completion and Embeddings APIs specification.
|
|
Create your account on [La Plateforme](https://console.mistral.ai) to
|
|
get access and read the [docs](https://docs.mistral.ai) to learn how to
|
|
use it.
|
|
|
|
%prep
|
|
%autosetup -p1 -n mistralai-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/mistralai
|
|
%{python_sitelib}/mistralai_gcp
|
|
%{python_sitelib}/mistralai_azure
|
|
%{python_sitelib}/mistralai-%{version}*-info
|
|
|
|
%changelog
|