Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,31 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
build:
if: github.repository == 'stainless-sdks/mixedbread-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
timeout-minutes: 10
name: upload
name: build
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run build
run: rye build

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.15.0"
".": "0.16.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 49
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-fe968780e87b8a5ff65ea009ade00fb0e27e951f7ce16d39a2ae0957740add45.yml
openapi_spec_hash: 9a29ae1bb05df2061e321b0d1adef675
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mixedbread%2Fmixedbread-315b0ef2cbe106abc1299563d329b70c233e3bcbe5233db006fa09fbeafb7b62.yml
openapi_spec_hash: 56fa40291a1ee5d7bfcde5654540cba8
config_hash: e4d40031e9232e8e6c16e73430b7f535
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.16.0 (2025-07-02)

Full Changelog: [v0.15.0...v0.16.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.15.0...v0.16.0)

### Features

* **api:** api update ([4ede5dc](https://github.com/mixedbread-ai/mixedbread-python/commit/4ede5dc339b9f37dd3a0be5dbf4c7f9ff1331e2e))


### Chores

* **ci:** change upload type ([b9599e2](https://github.com/mixedbread-ai/mixedbread-python/commit/b9599e29379e8637e27c97c0c5040aae83bb242c))

## 0.15.0 (2025-06-30)

Full Changelog: [v0.14.0...v0.15.0](https://github.com/mixedbread-ai/mixedbread-python/compare/v0.14.0...v0.15.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mixedbread"
version = "0.15.0"
version = "0.16.0"
description = "The official Python library for the Mixedbread API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
12 changes: 7 additions & 5 deletions scripts/utils/upload-artifact.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash
set -exuo pipefail

RESPONSE=$(curl -X POST "$URL" \
FILENAME=$(basename dist/*.whl)

RESPONSE=$(curl -X POST "$URL?filename=$FILENAME" \
-H "Authorization: Bearer $AUTH" \
-H "Content-Type: application/json")

Expand All @@ -12,13 +14,13 @@ if [[ "$SIGNED_URL" == "null" ]]; then
exit 1
fi

UPLOAD_RESPONSE=$(tar -cz . | curl -v -X PUT \
-H "Content-Type: application/gzip" \
--data-binary @- "$SIGNED_URL" 2>&1)
UPLOAD_RESPONSE=$(curl -v -X PUT \
-H "Content-Type: binary/octet-stream" \
--data-binary "@dist/$FILENAME" "$SIGNED_URL" 2>&1)

if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/mixedbread-python/$SHA'\033[0m"
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/mixedbread-python/$SHA/$FILENAME'\033[0m"
else
echo -e "\033[31mFailed to upload artifact.\033[0m"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/mixedbread/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "mixedbread"
__version__ = "0.15.0" # x-release-please-version
__version__ = "0.16.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/mixedbread/resources/parsing/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def list(
before: Optional[str] | NotGiven = NOT_GIVEN,
include_total: bool | NotGiven = NOT_GIVEN,
statuses: Optional[List[ParsingJobStatus]] | NotGiven = NOT_GIVEN,
q: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -186,6 +187,8 @@ def list(

statuses: Status to filter by

q: Search query to filter by

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -208,6 +211,7 @@ def list(
"before": before,
"include_total": include_total,
"statuses": statuses,
"q": q,
},
job_list_params.JobListParams,
),
Expand Down Expand Up @@ -577,6 +581,7 @@ async def list(
before: Optional[str] | NotGiven = NOT_GIVEN,
include_total: bool | NotGiven = NOT_GIVEN,
statuses: Optional[List[ParsingJobStatus]] | NotGiven = NOT_GIVEN,
q: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -605,6 +610,8 @@ async def list(

statuses: Status to filter by

q: Search query to filter by

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -627,6 +634,7 @@ async def list(
"before": before,
"include_total": include_total,
"statuses": statuses,
"q": q,
},
job_list_params.JobListParams,
),
Expand Down
3 changes: 3 additions & 0 deletions src/mixedbread/types/parsing/job_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ class JobListParams(TypedDict, total=False):

statuses: Optional[List[ParsingJobStatus]]
"""Status to filter by"""

q: Optional[str]
"""Search query to filter by"""
3 changes: 3 additions & 0 deletions src/mixedbread/types/parsing/job_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class Data(BaseModel):
file_id: str
"""The ID of the file to parse"""

filename: Optional[str] = None
"""The name of the file"""

status: ParsingJobStatus
"""The status of the job"""

Expand Down
3 changes: 3 additions & 0 deletions src/mixedbread/types/parsing/parsing_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class ParsingJob(BaseModel):
file_id: str
"""The ID of the file to parse"""

filename: Optional[str] = None
"""The name of the file"""

status: ParsingJobStatus
"""The status of the job"""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/parsing/test_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def test_method_list_with_all_params(self, client: Mixedbread) -> None:
before="eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ==",
include_total=False,
statuses=["pending", "in_progress"],
q="x",
)
assert_matches_type(JobListResponse, job, path=["response"])

Expand Down Expand Up @@ -312,6 +313,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncMixedbread)
before="eyJjcmVhdGVkX2F0IjoiMjAyNC0xMi0zMVQyMzo1OTo1OS4wMDBaIiwiaWQiOiJhYmMxMjMifQ==",
include_total=False,
statuses=["pending", "in_progress"],
q="x",
)
assert_matches_type(JobListResponse, job, path=["response"])

Expand Down