From 20d51f6873fe6de8a11dc6e11d10693d55f47de9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 23 Sep 2026 17:13:45 +0800 Subject: [PATCH 1/2] Update README with request and error handling details Clarified the request structure and error handling in the documentation. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index eeb7feb..8ced452 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,6 @@ sh scripts/dev-backend.sh ```sh # 终端 2:React/Vite cd frontend -pnpm install --frozen-lockfile pnpm dev ``` @@ -91,7 +90,7 @@ curl -X POST https://console.example.com/v1/systemone \ -d '{"state":{"message":"I was charged twice"},"questions":{"refund":{"type":"noul","instructions":"Does the customer ask for a refund?"}}}' ``` -请求中的 `state` 可为字符串、JSON 对象或数组;`questions` 是非空问题 ID 映射,支持 `noul`、`choice` 和 `score`;`model` 可选 `auto`(默认)、`english`、`multilingual` 或 `typed-decisions`。返回保留上游 `answers`、`model` 和 `usage`。错误使用 `detail.code` 和 `detail.message`。无效密钥为 401,校验失败为 422,模型不可用为 503。控制台 Playground 使用管理员会话,记录为单独用量来源。 +请求中的 `state` 可为字符串、JSON 对象或数组;`questions` 是非空问题 ID 映射,支持 `noul`、`choice` 和 `score`;`model` 可选 `auto`(默认)、`english`、`multilingual` 或 `typed-decisions`。返回结果保留上游 `answers`、`model` 和 `usage`。错误使用 `detail.code` 和 `detail.message`。无效密钥为 401,校验失败为 422,模型不可用为 503。控制台 Playground 使用管理员会话,记录为单独用量来源。 ## 数据与维护 From 25cf77fa903a57770b9d534646949497d1b28284 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 23 Sep 2026 17:15:01 +0800 Subject: [PATCH 2/2] Update README with pnpm install instruction Add pnpm install command for frontend setup --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8ced452..129ef32 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ sh scripts/dev-backend.sh ```sh # 终端 2:React/Vite cd frontend +pnpm install --frozen-lockfile pnpm dev ```