feat(llm): implement structured JSON output for assistant responses
Some checks failed
Build and Push Docker / build-and-push (push) Has been cancelled

This commit is contained in:
gameloader
2025-10-26 17:01:59 +08:00
parent 33063821df
commit 2297ba097b
3 changed files with 242 additions and 55 deletions

View File

@ -32,6 +32,8 @@ class ChatRequest(BaseModel):
class ChatResponse(BaseModel):
success: bool
response: Optional[str] = None
action: Optional[str] = None
parse_error: Optional[str] = None
tokens: Optional[int] = None
user_id: str
error: Optional[str] = None