Skip to content

release: 0.33.0#247

Merged
joeldierkes merged 5 commits into
mainfrom
release-please--branches--main--changes--next
Oct 8, 2025
Merged

release: 0.33.0#247
joeldierkes merged 5 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented Oct 4, 2025

Automated Release PR

0.33.0 (2025-10-08)

Full Changelog: v0.32.1...v0.33.0

Features


This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


Note

Bumps to 0.33.0 with API/codegen introducing structured generated_metadata unions across chunk and vector store models, plus spec and changelog updates.

  • Types (codegen):
    • Replace Dict-based generated_metadata with discriminated-union types (markdown, text, pdf, code, audio) across:
      • src/mixedbread/types/scored_*_input_chunk.py
      • src/mixedbread/types/stores/store_file.py
      • src/mixedbread/types/vector_stores/*vector_store_file.py
      • src/mixedbread/types/vector_store_*_response.py
    • Add supporting metadata models, PropertyInfo(discriminator="type"), and TYPE_CHECKING/FieldInfo handling.
  • Release/Metadata:
    • Version bump 0.32.1 -> 0.33.0 in pyproject.toml, _version.py, and manifest.
    • Update OpenAPI spec URL/hash in .stats.yml.
    • Add CHANGELOG.md entry for 0.33.0 (API update).

Written by Cursor Bugbot for commit f095d04. This will update automatically on new commits. Configure here.

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Oct 4, 2025

🧪 Testing

To try out this version of the SDK, run:

pip install 'https://pkg.stainless.com/s/mixedbread-python/741043f6f885736d07240afc2af1fccf7ae3f0cc/mixedbread-0.32.1-py3-none-any.whl'

Expires: Fri, 07 Nov 2025 09:28:53 GMT

@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 85b73ab to fd5a21c Compare October 6, 2025 21:28
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from fd5a21c to d014fca Compare October 6, 2025 22:28
@stainless-app stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from d014fca to f095d04 Compare October 8, 2025 09:28
None,
],
PropertyInfo(discriminator="type"),
]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Pydantic Fails on None Discriminated Union

The GeneratedMetadata discriminated union includes None as a variant. When deserializing a None value, Pydantic attempts to access the 'type' discriminator field, leading to a runtime error. This pattern may also exist in other TypeAlias definitions.

Fix in Cursor Fix in Web

None,
],
PropertyInfo(discriminator="type"),
]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Discriminator Ambiguity in Metadata Types

The GeneratedMetadata TypeAlias uses a discriminator on the type field, but its union variants define type as Optional[Literal[...]] = None. This ambiguity when type is None can lead to deserialization errors.

Additional Locations (1)

Fix in Cursor Fix in Web

@joeldierkes joeldierkes merged commit d145a01 into main Oct 8, 2025
7 of 8 checks passed
@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app Bot commented Oct 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant