Tags: mistralai/client-python
Tags
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.1.3 (#447) * ## Python SDK Changes: * `mistral.beta.connectors.list_tools()`: **Added** * chore: align pyproject.toml and uv.lock to version 2.1.3 * chore: trigger CI --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Louis Sanna <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.1.2 (#444) * ## Python SDK Changes: * `mistral.beta.conversations.start()`: * `request.tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.list()`: `response.[].union(ModelConversation).tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.get()`: `response.union(ModelConversation).tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.start_stream()`: * `request.tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.create()`: * `request.tools[]` **Changed** (Breaking⚠️ ) * `response.tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.list()`: `response.[].tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.get()`: `response.tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.update()`: * `request.tools[]` **Changed** (Breaking⚠️ ) * `response.tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.update_version()`: `response.tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.list_versions()`: `response.[].tools[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.get_version()`: `response.tools[]` **Changed** (Breaking⚠️ ) * `mistral.chat.complete()`: * `request` **Changed** (Breaking⚠️ ) * `response.choices[]` **Changed** (Breaking⚠️ ) * `mistral.chat.stream()`: `request` **Changed** (Breaking⚠️ ) * `mistral.fim.complete()`: `response.choices[]` **Changed** (Breaking⚠️ ) * `mistral.agents.complete()`: * `request` **Changed** (Breaking⚠️ ) * `response.choices[]` **Changed** (Breaking⚠️ ) * `mistral.agents.stream()`: `request` **Changed** (Breaking⚠️ ) * chore: align pyproject.toml and uv.lock to version 2.1.2 * chore: trigger CI * fix(examples): revert to list[Tool] now that ChatCompletionRequestTools1 is removed * chore: retrigger CI --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Louis Sanna <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.1.1 (#442) * ## Python SDK Changes: * `mistral.chat.complete()`: `response.choices[]` **Changed** (Breaking⚠️ ) * `mistral.fim.complete()`: `response.choices[]` **Changed** (Breaking⚠️ ) * `mistral.agents.complete()`: `response.choices[]` **Changed** (Breaking⚠️ ) * chore: align pyproject.toml and uv.lock to version 2.1.1 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.1.0 (#439) * ## Python SDK Changes: * `mistral.beta.agents.update_version()`: `response` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.get()`: `response` **Changed** (Breaking⚠️ ) * `mistral.agents.stream()`: `request` **Changed** (Breaking⚠️ ) * `mistral.agents.complete()`: `request` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.start_stream()`: `request` **Changed** (Breaking⚠️ ) * `mistral.chat.stream()`: `request` **Changed** (Breaking⚠️ ) * `mistral.chat.complete()`: `request` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.restart()`: `request` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.list_versions()`: `response.[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.start()`: `request` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.list()`: `response.[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.get()`: `response` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.update()`: * `request` **Changed** (Breaking⚠️ ) * `response` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.get_version()`: `response` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.list()`: `response.[]` **Changed** (Breaking⚠️ ) * `mistral.beta.agents.create()`: * `request` **Changed** (Breaking⚠️ ) * `response` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.restart_stream()`: `request` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.append_stream()`: * `request.completion_args.reasoning_effort` **Added** * `mistral.audio.voices.update()`: **Added** * `mistral.beta.conversations.append()`: * `request.completion_args.reasoning_effort` **Added** * `mistral.audio.voices.list()`: **Added** * `mistral.audio.speech.complete()`: **Added** * `mistral.models.retrieve()`: `response.union(base).capabilities.reasoning` **Added** * `mistral.models.list()`: `response.data[].union(base).capabilities.reasoning` **Added** * `mistral.audio.voices.get_sample_audio()`: **Added** * `mistral.audio.voices.get()`: **Added** * `mistral.audio.voices.delete()`: **Added** * `mistral.audio.voices.create()`: **Added** * chore: align pyproject.toml and uv.lock to version 2.1.0 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.5 (#434) * ## Python SDK Changes: * `mistral.beta.connectors.get_auth_url()`: **Added** * `mistral.chat.complete()`: `request.reasoning_effort` **Added** * `mistral.chat.stream()`: `request.reasoning_effort` **Added** * `mistral.agents.complete()`: `request.reasoning_effort` **Added** * `mistral.agents.stream()`: `request.reasoning_effort` **Added** * chore: align pyproject.toml and uv.lock to version 2.0.5 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.4 (#426) * ## Python SDK Changes: * `mistral.beta.observability.judges.judge_conversation()`: **Added** * `mistral.chat.complete()`: `request.guardrails` **Added** * `mistral.chat.stream()`: `request.guardrails` **Added** * `mistral.agents.complete()`: `request.guardrails` **Added** * `mistral.agents.stream()`: `request.guardrails` **Added** * chore: align pyproject.toml and uv.lock to version 2.0.4 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.3 (#424) * ## Python SDK Changes: * `mistral.beta.conversations.append_stream()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.[].data.union(message.output.delta).content.union(OutputContentChunks).union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.chat.complete()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.choices[].message.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.start()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.outputs[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.append()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.outputs[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.get_history()`: `response.entries[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.get_messages()`: `response.messages[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.restart()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.outputs[].union(MessageOutputEntry).content.union(Array<MessageOutputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.start_stream()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.[].data.union(message.output.delta).content.union(OutputContentChunks).union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.classifiers.classify_chat()`: * `request.input.union(InstructRequest).messages[].union(user).content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.classifiers.moderate_chat()`: * `request.inputs.union(Array<>)[].union(tool).content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.restart_stream()`: * `request.inputs.union(Array<InputEntries>)[].union(MessageInputEntry).content.union(Array<MessageInputContentChunks>)[].union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.[].data.union(message.output.delta).content.union(OutputContentChunks).union(ThinkChunk).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.chat.stream()`: * `request.messages[].union(tool).content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.fim.complete()`: `response.choices[].message.content.union(Array<ContentChunk>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.fim.stream()`: `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.agents.complete()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.choices[].message.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.agents.stream()`: * `request.messages[].union(system).content.union(Array<SystemMessageContentChunks>)[].union(thinking).thinking[].union(ReferenceChunk).reference_ids[]` **Changed** (Breaking⚠️ ) * `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(reference).reference_ids[]` **Changed** (Breaking⚠️ ) * `mistral.models.list()`: `response.data[].union(base).capabilities` **Changed** * `mistral.models.retrieve()`: `response.union(base).capabilities` **Changed** * chore: align pyproject.toml and uv.lock to version 2.0.3 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.2 (#423) * ## Python SDK Changes: * `mistral.beta.conversations.start()`: `response.guardrails[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.append()`: `response.guardrails[]` **Changed** (Breaking⚠️ ) * `mistral.beta.conversations.restart()`: `response.guardrails[]` **Changed** (Breaking⚠️ ) * chore: align pyproject.toml and uv.lock to version 2.0.2 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
chore: 🐝 Update SDK - Generate MISTRALAI MISTRALAI-SDK 2.0.1 (#421) * ## Python SDK Changes: * `mistral.chat.complete()`: * `request.messages[].union(user).content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `response.choices[].message.content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.classifiers.classify_chat()`: * `request.input.union(InstructRequest).messages[].union(user).content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.classifiers.moderate_chat()`: * `request.inputs.union(Array<>)[].union(user).content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.agents.stream()`: * `request.messages[].union(user).content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.agents.complete()`: * `request.messages[].union(user).content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `response.choices[].message.content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.fim.stream()`: `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.fim.complete()`: `response.choices[].message.content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.chat.stream()`: * `request.messages[].union(user).content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `response.[].data.choices[].delta.content.union(Array<ContentChunk>)[].union(audio_url)` **Removed** (Breaking⚠️ ) * `mistral.beta.conversations.restart_stream()`: * `request.guardrails[]` **Changed** * `mistral.beta.agents.update()`: * `request` **Changed** * `response` **Changed** * `mistral.beta.agents.update_version()`: `response` **Changed** * `mistral.beta.agents.list_versions()`: `response.[]` **Changed** * `mistral.beta.agents.get_version()`: `response` **Changed** * `mistral.beta.agents.get()`: `response` **Changed** * `mistral.beta.agents.list()`: `response.[]` **Changed** * `mistral.beta.agents.create()`: * `request` **Changed** * `response` **Changed** * `mistral.beta.conversations.start()`: `request` **Changed** * `mistral.beta.conversations.start_stream()`: `request` **Changed** * `mistral.beta.conversations.restart()`: * `request.guardrails[]` **Changed** * `mistral.beta.conversations.get()`: `response.union(ModelConversation)` **Changed** * `mistral.beta.conversations.list()`: `response.[].union(ModelConversation)` **Changed** * chore: align pyproject.toml and uv.lock to version 2.0.1 --------- Co-authored-by: speakeasybot <[email protected]> Co-authored-by: GitHub Action <[email protected]>
feat(extra): better OTEL instrumentation (#407) * feat(extra): better OTEL instrumentation * chore: adapt to v2 * chore(deps): adapt opentelemetry deps Will probably be merged before in #406 * fix: use public httpx content API * docs: add some TODOs * chore: remove custom mistral ai total tokens span attribute * chore(extra): remove custom operation id span attribute
PreviousNext