mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-11-12 08:41:45 +00:00
Bundles 10 community fixes for the Python wrappers, each commit kept with its original author. Ships supermemory-openai-sdk 1.0.10, supermemory-cartesia 0.1.5 and supermemory-pipecat 0.1.5. - openai-sdk-python: shared OpenAI clients no longer leak memories across tenants (#1503), memory search fails open instead of crashing the chat (#1288), the requests fallback runs off the event loop (#1660), get_profile works for users with no memories (#1759). - cartesia: the wrapped agent runs exactly once per event (#1280, #1670), plain-string and chunk-only search results are kept (#1683, #1693). - pipecat: memory text stays literal when replacing the injected block (#1647), `InputParams` is exported from the package root (#1575). - #1503 was hand-ported onto main's newer middleware. #1751 is left out: the v5 agent-framework migration (#1786) appends to the conversation document by design. Co-Authored-By: abhinav7x94 <204053250+abhinav7x94@users.noreply.github.com> Co-Authored-By: shamAnimates <145093437+shamAnimates@users.noreply.github.com> Co-Authored-By: aloktripathi1 <142301030+aloktripathi1@users.noreply.github.com> Co-Authored-By: Cintu07 <178455858+Cintu07@users.noreply.github.com> Co-Authored-By: Atharvsinh-codez <201381760+Atharvsinh-codez@users.noreply.github.com> Co-Authored-By: abhay-codes07 <182421137+abhay-codes07@users.noreply.github.com> Co-Authored-By: nkootstra <545768+nkootstra@users.noreply.github.com> Co-Authored-By: Agnik47 <140933190+Agnik47@users.noreply.github.com>
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
"""Documented public names, like `InputParams`, must import from the package root."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import unittest
|
|
|
|
from .test_empty_profile import _install_test_stubs
|
|
|
|
_install_test_stubs()
|
|
|
|
import supermemory_pipecat
|
|
from supermemory_pipecat import InputParams, SupermemoryPipecatService
|
|
|
|
|
|
class TestPublicExports(unittest.TestCase):
|
|
def test_input_params_is_exported_from_the_package_root(self) -> None:
|
|
self.assertIn("InputParams", supermemory_pipecat.__all__)
|
|
self.assertIs(InputParams, SupermemoryPipecatService.InputParams)
|
|
|
|
def test_documented_configuration_example_constructs(self) -> None:
|
|
params = InputParams(
|
|
mode="full",
|
|
search_limit=10,
|
|
search_threshold=0.1,
|
|
system_prompt="Based on previous conversations:\n\n",
|
|
)
|
|
|
|
self.assertEqual(params.mode, "full")
|
|
self.assertEqual(params.search_limit, 10)
|
|
self.assertEqual(params.search_threshold, 0.1)
|
|
self.assertEqual(params.system_prompt, "Based on previous conversations:\n\n")
|