feat: FastAPI+SSE API server, JRXML auto-reorder, session integrity fixes
This commit is contained in:
+2
-1
@@ -179,7 +179,8 @@ def _build_raw_llm(caller: str = "") -> tuple[_BaseLLM, str, str]:
|
||||
messages=[{"role": "user", "content": [{"type": "text", "text": prompt}]}],
|
||||
)
|
||||
for block in resp.content:
|
||||
if block.type == "text":
|
||||
block_type = getattr(block, "type", "")
|
||||
if block_type == "text":
|
||||
return type("Response", (), {"content": block.text})()
|
||||
return type("Response", (), {"content": ""})()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user