Skip to content

chore(deps): bump the all-dependencies group with 2 updates#212

Merged
tiadams merged 1 commit into
mainfrom
dependabot/uv/all-dependencies-915c49cb08
Apr 21, 2026
Merged

chore(deps): bump the all-dependencies group with 2 updates#212
tiadams merged 1 commit into
mainfrom
dependabot/uv/all-dependencies-915c49cb08

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 20, 2026

Copy link
Copy Markdown
Contributor

Bumps the all-dependencies group with 2 updates: openai and sentence-transformers.

Updates openai from 2.31.0 to 2.32.0

Release notes

Sourced from openai's releases.

v2.32.0

2.32.0 (2026-04-15)

Full Changelog: v2.31.0...v2.32.0

Features

  • api: Add detail to InputFileContent (60de21d)
  • api: add OAuthErrorCode type (0c8d2c3)
  • client: add event handler implementation for websockets (0280d05)
  • client: allow enqueuing to websockets even when not connected (67aa20e)
  • client: support reconnection in websockets (eb72a95)

Bug Fixes

  • ensure file data are only sent as 1 parameter (c0c2ecd)

Documentation

Changelog

Sourced from openai's changelog.

2.32.0 (2026-04-15)

Full Changelog: v2.31.0...v2.32.0

Features

  • api: Add detail to InputFileContent (60de21d)
  • api: add OAuthErrorCode type (0c8d2c3)
  • client: add event handler implementation for websockets (0280d05)
  • client: allow enqueuing to websockets even when not connected (67aa20e)
  • client: support reconnection in websockets (eb72a95)

Bug Fixes

  • ensure file data are only sent as 1 parameter (c0c2ecd)

Documentation

Commits

Updates sentence-transformers from 5.4.0 to 5.4.1

Release notes

Sourced from sentence-transformers's releases.

v5.4.1 - Numpy string arrays

This patch release allows encode() and predict() to accept 1D numpy string arrays as inputs.

Install this version with

# Training + Inference
pip install sentence-transformers[train]==5.4.1
Inference only, use one of:
pip install sentence-transformers==5.4.1
pip install sentence-transformers[onnx-gpu]==5.4.1
pip install sentence-transformers[onnx]==5.4.1
pip install sentence-transformers[openvino]==5.4.1
Multimodal dependencies (optional):
pip install sentence-transformers[image]==5.4.1
pip install sentence-transformers[audio]==5.4.1
pip install sentence-transformers[video]==5.4.1
Or combine as needed:
pip install sentence-transformers[train,onnx,image]==5.4.1

Numpy string/object arrays as batches (#3720)

encode() and predict() now correctly recognize 1D numpy string/object arrays as batches rather than singular inputs. Previously, something like model.encode(df["text"].to_numpy()) was silently treated as a single input and produced incorrect output. 1D numpy arrays with dtype.kind in ("U", "O") are now unpacked like lists, and 2D+ arrays are treated as batches of pairs (for CrossEncoder).

import numpy as np
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("all-MiniLM-L6-v2")
Previously treated as one input; now correctly encoded as 3 separate texts
embeddings = model.encode(np.array(["first", "second", "third"]))
print(embeddings.shape)
(3, 384)

For CrossEncoder, a 1D numpy string array is still treated as a single [query, document] pair to match the existing list behavior, while a 2D array of shape (N, 2) is a batch of N pairs.

Safer activation function loading in Dense (#3714)

The Dense module stores its activation function as a dotted import path in its saved config (e.g. "torch.nn.modules.activation.Tanh"), which was then resolved via import_from_string whenever the module was loaded. Because any importable Python callable could be referenced, a maliciously crafted config.json on the Hub could trigger arbitrary imports at model load time.

The loader now only resolves activation functions whose import path starts with torch.. Anything else is skipped with a warning and replaced by the default activation (Tanh). To load a model with a custom (non-torch) activation function, opt in explicitly with trust_remote_code=True:

from sentence_transformers import SentenceTransformer
</tr></table>

... (truncated)

Commits
  • 6dc2cb5 Release v5.4.1
  • a6a371c Merge branch 'main' into v5.4-release
  • c500af5 [fix] Treat numpy string/object arrays as batches in encode/predict (#3720)
  • 25f0694 Only load activation functions starting with 'torch' in the Dense module (#3714)
  • 9140444 Replace evaluation_strategy with eval_strategy in a few more places (#3713)
  • cec9077 No revision needed anymore for nvidia nemotron (#3712)
  • 5035ccd No revision needed anymore for nvidia nemotron (#3712)
  • abca5aa Increment dev version after v5.4 release (#3711)
  • d36232b [tests] Fix test_trainer_prompts for SE and ST after prompt handling moved ...
  • See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the all-dependencies group with 2 updates: [openai](https://github.com/openai/openai-python) and [sentence-transformers](https://github.com/huggingface/sentence-transformers).


Updates `openai` from 2.31.0 to 2.32.0
- [Release notes](https://github.com/openai/openai-python/releases)
- [Changelog](https://github.com/openai/openai-python/blob/main/CHANGELOG.md)
- [Commits](openai/openai-python@v2.31.0...v2.32.0)

Updates `sentence-transformers` from 5.4.0 to 5.4.1
- [Release notes](https://github.com/huggingface/sentence-transformers/releases)
- [Commits](huggingface/sentence-transformers@v5.4.0...v5.4.1)

---
updated-dependencies:
- dependency-name: openai
  dependency-version: 2.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: sentence-transformers
  dependency-version: 5.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Apr 20, 2026
@tiadams tiadams merged commit 465d2a7 into main Apr 21, 2026
8 checks passed
@tiadams tiadams deleted the dependabot/uv/all-dependencies-915c49cb08 branch April 21, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant