A0 running with Local AI can't concatenate "NoneType" #978
snavazio
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Seems like the lack of an API or something else is making my A0 install get an error. This was the fix I found.
For completeness sake this is the full error....
"
Failed to filter relevant memories minimize expand_all Traceback (most recent call last): Traceback (most recent call last): File "/a0/python/extensions/message_loop_prompts_after/_50_recall_memories.py", line 146, in search_memories filter = await self.agent.call_utility_model( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/agent.py", line 719, in call_utility_model response, _reasoning = await call_data["model"].unified_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/models.py", line 545, in unified_call output = result.add_chunk(parsed) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/models.py", line 118, in add_chunk self.reasoning += processed_chunk["reasoning_delta"] TypeError: can only concatenate str (not "NoneType") to str TypeError: can only concatenate str (not "NoneType") to str"
"
BEFORE
self.reasoning += processed_chunk["reasoning_delta"]
AFTER (safe)
delta = processed_chunk.get("reasoning_delta")
if delta: # covers None, "", missing
self.reasoning += delta
Beta Was this translation helpful? Give feedback.
All reactions