lhl
|
25fc472d9b
|
feat(inference): chat_structured 接入 jsonschema 真校验(T1 架构审查整改)
- pyproject.toml 新增 jsonschema>=4.23 依赖
- engine.py: json.loads 后 jsonschema.validate,校验失败按解析失败重试(带错误信息)
- 新增 3 用例:违规重试成功/耗尽 parse_error 含详情/合法一次通过
- 全量 163 passed / 100.00% 覆盖(936 stmts/238 br),fail_under=99 达标
|
2026-08-12 09:32:02 +08:00 |
|
lhl
|
f3a30256d5
|
chore: 清理 error_code 收尾(删冗余死代码行、补尾换行)
|
2026-08-09 13:58:53 +08:00 |
|
lhl
|
aa9c63df73
|
feat: engine 透传 error_code(与 error 同源取最后一次异常)
|
2026-08-09 13:48:00 +08:00 |
|
lhl
|
3b98412492
|
feat: 结果对象 error_code 字段(默认 None 向后兼容)
|
2026-08-09 13:44:19 +08:00 |
|
lhl
|
f61e7dadb7
|
feat: 异常树 error_code 类属性(对齐 api-design §7 错误码)
|
2026-08-09 13:38:59 +08:00 |
|
lhl
|
cb2deda08a
|
test: 清理 backlog——chat_structured 超限检测 + client 上下文管理器
|
2026-08-09 09:15:36 +08:00 |
|
lhl
|
14062d1954
|
fix: 客户端响应结构损坏归入 LLMResponseError;3xx 不再误判成功
|
2026-08-09 08:36:02 +08:00 |
|
lhl
|
8bc5e5e571
|
feat: InferenceEngine chat/chat_structured 全流程 + 文档补丁(补丁1/2/3)
|
2026-08-09 08:26:37 +08:00 |
|
lhl
|
add7b1503c
|
feat: HttpLLMClient(httpx + 重试退避/超时/鉴权)
|
2026-08-09 08:08:04 +08:00 |
|
lhl
|
59c1ea7abe
|
feat: PromptRegistry 注册/版本/渲染(jinja2)
|
2026-08-09 08:03:17 +08:00 |
|
lhl
|
71d38b90bf
|
feat: Token 估算(approximate 内置 / tiktoken 可选回落)
|
2026-08-09 05:58:16 +08:00 |
|
lhl
|
c2fad77698
|
feat: 推理引擎数据模型与异常层(types/exceptions)及 httpx/jinja2 依赖
|
2026-08-09 05:53:55 +08:00 |
|