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 @@
{
".": "3.25.0"
".": "3.26.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: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-eb2aa0ee3a6380fe8dead168c3fec696acdf79d0fa5821b796f0335566c78f22.yml
openapi_spec_hash: 4b09ba67c690fd139df5b939fc899d49
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-8773015c1da0dcb9dfeec7ff946b71ed9b75b854d0f0de6dc1545d218d181715.yml
openapi_spec_hash: 1af583bba4ee00275021c440cf38ee13
config_hash: f3eb5ca71172780678106f6d46f15dda
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 3.26.0 (2026-02-20)

Full Changelog: [v3.25.0...v3.26.0](https://github.com/supermemoryai/python-sdk/compare/v3.25.0...v3.26.0)

### Features

* **api:** api update ([0bfae9d](https://github.com/supermemoryai/python-sdk/commit/0bfae9dce59817f6aa92f79a35f033d5888501af))


### Chores

* **internal:** remove mock server code ([1135336](https://github.com/supermemoryai/python-sdk/commit/113533627803db42f5b519cc2ba978da81f4c99d))
* update mock server docs ([b382215](https://github.com/supermemoryai/python-sdk/commit/b382215ce4f4062f43fa4b0ef686e90bf461c651))

## 3.25.0 (2026-02-18)

Full Changelog: [v3.24.0...v3.25.0](https://github.com/supermemoryai/python-sdk/compare/v3.24.0...v3.25.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```
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 = "supermemory"
version = "3.25.0"
version = "3.26.0"
description = "The official Python library for the supermemory API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,7 @@ set -e

cd "$(dirname "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

export DEFER_PYDANTIC_BUILD=false

Expand Down
2 changes: 1 addition & 1 deletion src/supermemory/_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__ = "supermemory"
__version__ = "3.25.0" # x-release-please-version
__version__ = "3.26.0" # x-release-please-version
7 changes: 4 additions & 3 deletions src/supermemory/types/search_memories_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3857,9 +3857,10 @@ class FiltersAnd(TypedDict, total=False):

class Include(TypedDict, total=False):
chunks: bool
"""
If true, fetch and return chunks from documents associated with the found
memories. Performs vector search on chunks within those documents.
"""DEPRECATED: Use searchMode='hybrid' instead.

If true, automatically switches to hybrid mode. This field is kept for backward
compatibility only.
"""

documents: bool
Expand Down
4 changes: 3 additions & 1 deletion src/supermemory/types/search_memories_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ class SearchMemoriesResponse(BaseModel):
Contains memory results when searchMode='memories', both memory and chunk
results when searchMode='hybrid', or only chunk results when
searchMode='documents'. Memory results have 'memory' field, chunk results have
'chunk' field.
'chunk' field. BACKWARD COMPATIBILITY: When using deprecated
include.chunks=true, only memory results are returned with chunks embedded in
them (old format).
"""

timing: float
Expand Down
32 changes: 16 additions & 16 deletions tests/api_resources/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
class TestClient:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_add(self, client: Supermemory) -> None:
client_ = client.add(
content="content",
)
assert_matches_type(AddResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_add_with_all_params(self, client: Supermemory) -> None:
client_ = client.add(
Expand All @@ -38,7 +38,7 @@ def test_method_add_with_all_params(self, client: Supermemory) -> None:
)
assert_matches_type(AddResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_add(self, client: Supermemory) -> None:
response = client.with_raw_response.add(
Expand All @@ -50,7 +50,7 @@ def test_raw_response_add(self, client: Supermemory) -> None:
client_ = response.parse()
assert_matches_type(AddResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_add(self, client: Supermemory) -> None:
with client.with_streaming_response.add(
Expand All @@ -64,15 +64,15 @@ def test_streaming_response_add(self, client: Supermemory) -> None:

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_profile(self, client: Supermemory) -> None:
client_ = client.profile(
container_tag="containerTag",
)
assert_matches_type(ProfileResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_profile_with_all_params(self, client: Supermemory) -> None:
client_ = client.profile(
Expand All @@ -82,7 +82,7 @@ def test_method_profile_with_all_params(self, client: Supermemory) -> None:
)
assert_matches_type(ProfileResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_profile(self, client: Supermemory) -> None:
response = client.with_raw_response.profile(
Expand All @@ -94,7 +94,7 @@ def test_raw_response_profile(self, client: Supermemory) -> None:
client_ = response.parse()
assert_matches_type(ProfileResponse, client_, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_profile(self, client: Supermemory) -> None:
with client.with_streaming_response.profile(
Expand All @@ -114,15 +114,15 @@ class TestAsyncClient:
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
)

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_add(self, async_client: AsyncSupermemory) -> None:
client = await async_client.add(
content="content",
)
assert_matches_type(AddResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_add_with_all_params(self, async_client: AsyncSupermemory) -> None:
client = await async_client.add(
Expand All @@ -135,7 +135,7 @@ async def test_method_add_with_all_params(self, async_client: AsyncSupermemory)
)
assert_matches_type(AddResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_add(self, async_client: AsyncSupermemory) -> None:
response = await async_client.with_raw_response.add(
Expand All @@ -147,7 +147,7 @@ async def test_raw_response_add(self, async_client: AsyncSupermemory) -> None:
client = await response.parse()
assert_matches_type(AddResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_add(self, async_client: AsyncSupermemory) -> None:
async with async_client.with_streaming_response.add(
Expand All @@ -161,15 +161,15 @@ async def test_streaming_response_add(self, async_client: AsyncSupermemory) -> N

assert cast(Any, response.is_closed) is True

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_profile(self, async_client: AsyncSupermemory) -> None:
client = await async_client.profile(
container_tag="containerTag",
)
assert_matches_type(ProfileResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_profile_with_all_params(self, async_client: AsyncSupermemory) -> None:
client = await async_client.profile(
Expand All @@ -179,7 +179,7 @@ async def test_method_profile_with_all_params(self, async_client: AsyncSupermemo
)
assert_matches_type(ProfileResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_profile(self, async_client: AsyncSupermemory) -> None:
response = await async_client.with_raw_response.profile(
Expand All @@ -191,7 +191,7 @@ async def test_raw_response_profile(self, async_client: AsyncSupermemory) -> Non
client = await response.parse()
assert_matches_type(ProfileResponse, client, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_profile(self, async_client: AsyncSupermemory) -> None:
async with async_client.with_streaming_response.profile(
Expand Down
Loading