Skip to content

release: 3.34.0#56

Open
stainless-app[bot] wants to merge 4 commits intomainfrom
release-please--branches--main--changes--next
Open

release: 3.34.0#56
stainless-app[bot] wants to merge 4 commits intomainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app bot commented Apr 16, 2026

Automated Release PR

3.34.0 (2026-04-17)

Full Changelog: v3.33.1...v3.34.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

@stainless-app
Copy link
Copy Markdown
Contributor Author

stainless-app bot commented Apr 16, 2026

🧪 Testing

To try out this version of the SDK:

pip install 'https://pkg.stainless.com/s/supermemory-new-python/ab60a7657699fc974c8648adcb74a0dba9a4fe5b/supermemory-3.33.1-py3-none-any.whl'

Expires at: Sat, 16 May 2026 19:25:59 GMT
Updated at: Thu, 16 Apr 2026 19:25:59 GMT

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 12de47e to 6a3b605 Compare April 16, 2026 19:25
summary: Optional[str] = None
"""Summary of the document content"""

task_type: Literal["memory", "superrag"] = FieldInfo(alias="taskType")
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: The new task_type field in DocumentGetResponse is required but lacks a default value. API responses for older documents may not include this field, causing validation to fail.
Severity: HIGH

Suggested Fix

To ensure backward compatibility, the task_type field should be made optional. Add a default value, such as default="memory", or change the type to Optional[Literal["memory", "superrag"]] with default=None.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: src/supermemory/types/document_get_response.py#L72

Potential issue: The `DocumentGetResponse` model adds a new field `task_type` (aliased
to `taskType`) which is required and has no default value. If the API retrieves a
document that was created before this field was introduced, the API response will not
contain the `taskType` key. This will cause Pydantic to raise a `ValidationError` when
parsing the response, breaking the document retrieval functionality for any older
documents.

Did we get this right? 👍 / 👎 to inform future reviews.

@stainless-app stainless-app bot force-pushed the release-please--branches--main--changes--next branch from 6a3b605 to 4530115 Compare April 17, 2026 01:15
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.

0 participants