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
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.20.0"
".": "0.21.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: 13
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-e8dc461bfd68745a68eddc289ac15c0c5d222f20e81a5c61b11ee3807a75d839.yml
openapi_spec_hash: 24eece3c79152b96c2cc0f398cf9d6af
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-14d23949fc9a5cf375c542a7a2bda08334079fab55f43b80a3d94ede34244da3.yml
openapi_spec_hash: b80c4f0e0311ff9125dfe27a5a405395
config_hash: bf6196b98ec72829d458bc45ccd5a5f9
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.21.0 (2025-08-05)

Full Changelog: [v0.20.0...v0.21.0](https://github.com/hyperspell/python-sdk/compare/v0.20.0...v0.21.0)

### Features

* **api:** api update ([ec5f973](https://github.com/hyperspell/python-sdk/commit/ec5f97338107ae64be0e174dda3ec4dda5903918))

## 0.20.0 (2025-08-01)

Full Changelog: [v0.19.0...v0.20.0](https://github.com/hyperspell/python-sdk/compare/v0.19.0...v0.20.0)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ client = Hyperspell(
memory_status = client.memories.add(
text="text",
)
print(memory_status.id)
print(memory_status.resource_id)
```

While you can provide an `api_key` keyword argument,
Expand All @@ -61,7 +61,7 @@ async def main() -> None:
memory_status = await client.memories.add(
text="text",
)
print(memory_status.id)
print(memory_status.resource_id)


asyncio.run(main())
Expand Down Expand Up @@ -96,7 +96,7 @@ async def main() -> None:
memory_status = await client.memories.add(
text="text",
)
print(memory_status.id)
print(memory_status.resource_id)


asyncio.run(main())
Expand Down Expand Up @@ -350,7 +350,7 @@ response = client.memories.with_raw_response.add(
print(response.headers.get('X-My-Header'))

memory = response.parse() # get the object that `memories.add()` would have returned
print(memory.id)
print(memory.resource_id)
```

These methods return an [`APIResponse`](https://github.com/hyperspell/python-sdk/tree/main/src/hyperspell/_response.py) object.
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 = "hyperspell"
version = "0.20.0"
version = "0.21.0"
description = "The official Python library for the hyperspell API"
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/hyperspell/_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__ = "hyperspell"
__version__ = "0.20.0" # x-release-please-version
__version__ = "0.21.0" # x-release-please-version
3 changes: 0 additions & 3 deletions src/hyperspell/types/memory_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@


class MemoryStatus(BaseModel):
id: int
"""Deprecated: refer to documents by source and resource_id instead"""

resource_id: str

source: Literal[
Expand Down