fix: guard all id/call_id fields with or "" to prevent None leaking into payload

This commit is contained in:
Liang Jiaqing
2026-04-23 11:00:04 +08:00
parent a53b7a8593
commit 17971f642a
2 changed files with 8 additions and 7 deletions

View File

@@ -75,7 +75,8 @@ class GeneraticAgent:
self.llm_no = ((self.llm_no + 1) if n < 0 else n) % len(self.llmclients)
lastc = self.llmclient
self.llmclient = self.llmclients[self.llm_no]
self.llmclient.backend.history = lastc.backend.history
try: self.llmclient.backend.history = lastc.backend.history
except: raise Exception('[ERROR] BAD Mixin config: Check your mykey.py')
self.llmclient.last_tools = ''
name = self.get_llm_name(model=True)
if 'glm' in name or 'minimax' in name or 'kimi' in name: load_tool_schema('_cn')