Skip to content

Commit acbf4a9

Browse files
authored
Merge pull request #266 from mixedbread-ai/release-please--branches--main--changes--next
release: 0.47.1
2 parents a4678db + 775251c commit acbf4a9

8 files changed

Lines changed: 47 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,18 @@ jobs:
6161
run: rye build
6262

6363
- name: Get GitHub OIDC Token
64-
if: github.repository == 'stainless-sdks/mixedbread-python'
64+
if: |-
65+
github.repository == 'stainless-sdks/mixedbread-python' &&
66+
!startsWith(github.ref, 'refs/heads/stl/')
6567
id: github-oidc
6668
uses: actions/github-script@v8
6769
with:
6870
script: core.setOutput('github_token', await core.getIDToken());
6971

7072
- name: Upload tarball
71-
if: github.repository == 'stainless-sdks/mixedbread-python'
73+
if: |-
74+
github.repository == 'stainless-sdks/mixedbread-python' &&
75+
!startsWith(github.ref, 'refs/heads/stl/')
7276
env:
7377
URL: https://pkg.stainless.com/s
7478
AUTH: ${{ steps.github-oidc.outputs.github_token }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.47.0"
2+
".": "0.47.1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 56
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-83afe8d98b70a903eb9aa13b512b18aa3df9e5ec4c784bded17ac78d0a163c3c.yml
3-
openapi_spec_hash: 90b33b757e12f21c94705b6243054b5f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-928efac57471dbd8ac930afd8b7b3aec2d1c09190b5aadd1686606c73029ebf6.yml
3+
openapi_spec_hash: 6891b8b114fca054953e941d22b8d87e
44
config_hash: c32ffa6858a02d7f23f6f3dda0b461ed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.47.1 (2026-03-12)
4+
5+
Full Changelog: [v0.47.0...v0.47.1](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.47.0...v0.47.1)
6+
7+
### Chores
8+
9+
* **ci:** skip uploading artifacts on stainless-internal branches ([ffb6f62](https://github.com/mixedbread-ai/mixedbread-python/commit/ffb6f62c5ad6afb7b6330ef4159a32f35327b1b9))
10+
* **test:** do not count install time for mock server timeout ([5094a5c](https://github.com/mixedbread-ai/mixedbread-python/commit/5094a5c23d75363566963e806d60bf214575c89d))
11+
* update placeholder string ([eeb1328](https://github.com/mixedbread-ai/mixedbread-python/commit/eeb13288a93f42b17d3f21a7980d22c34c7afc8b))
12+
313
## 0.47.0 (2026-03-05)
414

515
Full Changelog: [v1.0.0...v0.47.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v1.0.0...v0.47.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mixedbread"
3-
version = "0.47.0"
3+
version = "0.47.1"
44
description = "The official Python library for the Mixedbread API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

scripts/mock

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,22 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24+
# Pre-install the package so the download doesn't eat into the startup timeout
25+
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism --version
26+
2427
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
2528

26-
# Wait for server to come online
29+
# Wait for server to come online (max 30s)
2730
echo -n "Waiting for server"
31+
attempts=0
2832
while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do
33+
attempts=$((attempts + 1))
34+
if [ "$attempts" -ge 300 ]; then
35+
echo
36+
echo "Timed out waiting for Prism server to start"
37+
cat .prism.log
38+
exit 1
39+
fi
2940
echo -n "."
3041
sleep 0.1
3142
done

src/mixedbread/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "mixedbread"
4-
__version__ = "0.47.0" # x-release-please-version
4+
__version__ = "0.47.1" # x-release-please-version

tests/api_resources/test_files.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class TestFiles:
2929
@parametrize
3030
def test_method_create(self, client: Mixedbread) -> None:
3131
file = client.files.create(
32-
file=b"raw file contents",
32+
file=b"Example data",
3333
)
3434
assert_matches_type(FileObject, file, path=["response"])
3535

3636
@parametrize
3737
def test_raw_response_create(self, client: Mixedbread) -> None:
3838
response = client.files.with_raw_response.create(
39-
file=b"raw file contents",
39+
file=b"Example data",
4040
)
4141

4242
assert response.is_closed is True
@@ -47,7 +47,7 @@ def test_raw_response_create(self, client: Mixedbread) -> None:
4747
@parametrize
4848
def test_streaming_response_create(self, client: Mixedbread) -> None:
4949
with client.files.with_streaming_response.create(
50-
file=b"raw file contents",
50+
file=b"Example data",
5151
) as response:
5252
assert not response.is_closed
5353
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -99,15 +99,15 @@ def test_path_params_retrieve(self, client: Mixedbread) -> None:
9999
def test_method_update(self, client: Mixedbread) -> None:
100100
file = client.files.update(
101101
file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
102-
file=b"raw file contents",
102+
file=b"Example data",
103103
)
104104
assert_matches_type(FileObject, file, path=["response"])
105105

106106
@parametrize
107107
def test_raw_response_update(self, client: Mixedbread) -> None:
108108
response = client.files.with_raw_response.update(
109109
file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
110-
file=b"raw file contents",
110+
file=b"Example data",
111111
)
112112

113113
assert response.is_closed is True
@@ -119,7 +119,7 @@ def test_raw_response_update(self, client: Mixedbread) -> None:
119119
def test_streaming_response_update(self, client: Mixedbread) -> None:
120120
with client.files.with_streaming_response.update(
121121
file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
122-
file=b"raw file contents",
122+
file=b"Example data",
123123
) as response:
124124
assert not response.is_closed
125125
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -134,7 +134,7 @@ def test_path_params_update(self, client: Mixedbread) -> None:
134134
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
135135
client.files.with_raw_response.update(
136136
file_id="",
137-
file=b"raw file contents",
137+
file=b"Example data",
138138
)
139139

140140
@parametrize
@@ -276,14 +276,14 @@ class TestAsyncFiles:
276276
@parametrize
277277
async def test_method_create(self, async_client: AsyncMixedbread) -> None:
278278
file = await async_client.files.create(
279-
file=b"raw file contents",
279+
file=b"Example data",
280280
)
281281
assert_matches_type(FileObject, file, path=["response"])
282282

283283
@parametrize
284284
async def test_raw_response_create(self, async_client: AsyncMixedbread) -> None:
285285
response = await async_client.files.with_raw_response.create(
286-
file=b"raw file contents",
286+
file=b"Example data",
287287
)
288288

289289
assert response.is_closed is True
@@ -294,7 +294,7 @@ async def test_raw_response_create(self, async_client: AsyncMixedbread) -> None:
294294
@parametrize
295295
async def test_streaming_response_create(self, async_client: AsyncMixedbread) -> None:
296296
async with async_client.files.with_streaming_response.create(
297-
file=b"raw file contents",
297+
file=b"Example data",
298298
) as response:
299299
assert not response.is_closed
300300
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -346,15 +346,15 @@ async def test_path_params_retrieve(self, async_client: AsyncMixedbread) -> None
346346
async def test_method_update(self, async_client: AsyncMixedbread) -> None:
347347
file = await async_client.files.update(
348348
file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
349-
file=b"raw file contents",
349+
file=b"Example data",
350350
)
351351
assert_matches_type(FileObject, file, path=["response"])
352352

353353
@parametrize
354354
async def test_raw_response_update(self, async_client: AsyncMixedbread) -> None:
355355
response = await async_client.files.with_raw_response.update(
356356
file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
357-
file=b"raw file contents",
357+
file=b"Example data",
358358
)
359359

360360
assert response.is_closed is True
@@ -366,7 +366,7 @@ async def test_raw_response_update(self, async_client: AsyncMixedbread) -> None:
366366
async def test_streaming_response_update(self, async_client: AsyncMixedbread) -> None:
367367
async with async_client.files.with_streaming_response.update(
368368
file_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
369-
file=b"raw file contents",
369+
file=b"Example data",
370370
) as response:
371371
assert not response.is_closed
372372
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -381,7 +381,7 @@ async def test_path_params_update(self, async_client: AsyncMixedbread) -> None:
381381
with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"):
382382
await async_client.files.with_raw_response.update(
383383
file_id="",
384-
file=b"raw file contents",
384+
file=b"Example data",
385385
)
386386

387387
@parametrize

0 commit comments

Comments
 (0)