debug messages cleanup
frdel committed
Jul 21, 2025 at 22:19 UTC
ff29f2b12d4c8004f359b4837107bfd1588ec2d5
4 files changed
+22
-11
prompts/default/memory.memories_sum.sys.md
+14
-3
@@ -7,11 +7,21 @@
7
- The response format is a JSON array of text notes containing facts to memorize
8
- If the history does not contain any useful information, the response will be an empty JSON array.
9
10
-# Example
10
+# Correct output examples
11
~~~json
12
[
13
"User's name is John Doe",
14
- "User's age is 30"
14
+ "User's dog name is Max",
15
+ "AsyncRaceError in primary_modules.py was fixed by a thread lock on line 123"
16
+]
17
+~~~
18
+
19
+# Wrong output examples
20
+~~~json
21
+[
22
+ "User's name",
23
+ "Today is Monday",
24
+ "Market inquiry",
25
]
26
~~~
27
@@ -19,4 +29,5 @@
29
- Focus only on relevant details and facts like names, IDs, instructions, opinions etc.
30
- Do not include irrelevant details that are of no use in the future
31
- Do not memorize facts that change like time, date etc.
22
-- Do not add your own details that are not specifically mentioned in the history
\ No newline at end of file
32
+- Do not add your own details that are not specifically mentioned in the history
33
+- Never memorize vague or incomplete information
\ No newline at end of file
python/helpers/kokoro_tts.py
+2
-1
@@ -9,6 +9,7 @@ from python.helpers import runtime
9
from python.helpers.print_style import PrintStyle
10
11
warnings.filterwarnings("ignore", category=FutureWarning)
12
+warnings.filterwarnings("ignore", category=UserWarning)
13
14
_pipeline = None
15
_voice = "am_puck,am_onyx"
@@ -39,7 +40,7 @@ async def _preload():
40
if not _pipeline:
41
PrintStyle.standard("Loading Kokoro TTS model...")
42
from kokoro import KPipeline
42
- _pipeline = KPipeline(lang_code="a")
43
+ _pipeline = KPipeline(lang_code="a", repo_id="hexgrad/Kokoro-82M")
44
finally:
45
is_updating_model = False
46
python/helpers/mcp_handler.py
+5
-5
@@ -505,11 +505,11 @@ class MCPConfig(BaseModel):
505
def __init__(self, servers_list: List[Dict[str, Any]]):
506
from collections.abc import Mapping, Iterable
507
508
- # DEBUG: Print the received servers_list
509
- if servers_list:
510
- PrintStyle(background_color="blue", font_color="white", padding=True).print(
511
- f"MCPConfig.__init__ received servers_list: {servers_list}"
512
- )
508
+ # # DEBUG: Print the received servers_list
509
+ # if servers_list:
510
+ # PrintStyle(background_color="blue", font_color="white", padding=True).print(
511
+ # f"MCPConfig.__init__ received servers_list: {servers_list}"
512
+ # )
513
514
# This empties the servers list if MCPConfig is a Pydantic model and servers is a field.
515
# If servers is a field like `servers: List[MCPServer] = Field(default_factory=list)`,
run_ui.py
+1
-2
@@ -221,9 +221,8 @@ def run():
221
"/mcp": ASGIMiddleware(app=mcp_server.DynamicMcpProxy.get_instance()), # type: ignore
222
},
223
)
224
- PrintStyle().debug("Registered middleware for MCP and MCP token")
224
226
- PrintStyle().debug(f"Starting server at {host}:{port}...")
225
+ PrintStyle().debug(f"Starting server at http://{host}:{port} ...")
226
227
server = make_server(
228
host=host,