diff options
| author | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
|---|---|---|
| committer | Zhineng Li <[email protected]> | 2026-02-13 10:54:11 +0800 |
| commit | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (patch) | |
| tree | 0dec367dac6e152161a6f7cc0dba6ebbef1f34a2 /data/zh_cn/edututor | |
| download | acs-metadata-full-1.0.0+20260212.tar.gz acs-metadata-full-1.0.0+20260212.zip | |
first commitHEADv1.0.0+20260212main
Diffstat (limited to 'data/zh_cn/edututor')
| -rw-r--r-- | data/zh_cn/edututor/2025-07-07/api-docs.php | 554 |
1 files changed, 554 insertions, 0 deletions
diff --git a/data/zh_cn/edututor/2025-07-07/api-docs.php b/data/zh_cn/edututor/2025-07-07/api-docs.php new file mode 100644 index 0000000..6356d13 --- /dev/null +++ b/data/zh_cn/edututor/2025-07-07/api-docs.php @@ -0,0 +1,554 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'EduTutor', + 'version' => '2025-07-07', + ], + 'directories' => [ + 'CutQuestions', + 'AnswerSSE', + ], + 'components' => [ + 'schemas' => [], + ], + 'apis' => [ + 'CutQuestions' => [ + 'summary' => '切题及题目结构化接口,客户输入试卷或整页题目图片,算法返回每个题目的位置信息以及结构化(题干、选项、答案等)信息。', + 'path' => '/service/cutApi', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '当前请求所使用的百炼业务空间 id。', + 'type' => 'string', + 'required' => true, + 'example' => 'llm-1ijrzuv3v0ivvls7', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body。', + 'type' => 'object', + 'properties' => [ + 'image' => [ + 'description' => '试卷、题目图片链接。', + 'type' => 'string', + 'required' => true, + 'example' => 'https://oss.xxx.com/xx.png', + ], + 'parameters' => [ + 'description' => '参数配置。', + 'type' => 'object', + 'properties' => [ + 'struct' => [ + 'description' => '是否返回结构化信息。', + 'type' => 'boolean', + 'required' => true, + 'example' => 'true', + ], + 'extract_images' => [ + 'description' => '是否返回子题临时oss链接,便于后续答题直接使用。', + 'type' => 'boolean', + 'required' => true, + 'example' => 'true', + ], + ], + 'required' => true, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'description' => '请求id,每次请求都是唯一值,便于后续排查问题。', + 'type' => 'string', + 'example' => '1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB', + ], + 'success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'code' => [ + 'description' => '响应状态码。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'httpStatusCode' => [ + 'description' => 'http状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'message' => [ + 'description' => '返回码描述。', + 'type' => 'string', + 'example' => 'success', + ], + 'data' => [ + 'description' => '算法返回结果。', + 'type' => 'string', + 'example' => '\'{'."\n" + .' "questions": ['."\n" + .' {'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 82,'."\n" + .' 21,'."\n" + .' 82'."\n" + .' ]'."\n" + .' ],'."\n" + .' "sub_images": ['."\n" + .' "http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gym****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D"'."\n" + .' ],'."\n" + .' "merged_image": "http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gy****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D",'."\n" + .' "info": {'."\n" + .' "stem": {'."\n" + .' "text": "8. 若 \\\\\\\\(a + b = -1\\\\\\\\), \\\\\\\\(ab = 4\\\\\\\\), 则 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值为 _ 。",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 78,'."\n" + .' 21,'."\n" + .' 78'."\n" + .' ]'."\n" + .' ]'."\n" + .' },'."\n" + .' "option": [],'."\n" + .' "figure": [],'."\n" + .' "answer": ['."\n" + .' {'."\n" + .' "text": "-17",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 225,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 70,'."\n" + .' 225,'."\n" + .' 70'."\n" + .' ]'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "type": "填空题",'."\n" + .' "subquestion": []'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}\'', + ], + 'input_tokens' => [ + 'description' => '此次调用输入消耗的token数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '80', + ], + 'output_tokens' => [ + 'description' => '此次调用输出消耗的token数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '38', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB\\",\\n \\"success\\": true,\\n \\"code\\": \\"SUCCESS\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"data\\": \\"\'{\\\\n \\\\\\"questions\\\\\\": [\\\\n {\\\\n \\\\\\"pos_list\\\\\\": [\\\\n [\\\\n 21,\\\\n 0,\\\\n 364,\\\\n 0,\\\\n 364,\\\\n 82,\\\\n 21,\\\\n 82\\\\n ]\\\\n ],\\\\n \\\\\\"sub_images\\\\\\": [\\\\n \\\\\\"http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gym****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D\\\\\\"\\\\n ],\\\\n \\\\\\"merged_image\\\\\\": \\\\\\"http://duguang-mld.oss-accelerate.aliyuncs.com/ocr_edu/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png?OSSAccessKeyId=LTAI5tPtEwpyT4JR9Gy****&Expires=1755593474&Signature=SnqwepQVvZ51PnUGtpH0fWV50JI%3D\\\\\\",\\\\n \\\\\\"info\\\\\\": {\\\\n \\\\\\"stem\\\\\\": {\\\\n \\\\\\"text\\\\\\": \\\\\\"8. 若 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\), \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\), 则 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 的值为 _ 。\\\\\\",\\\\n \\\\\\"pos_list\\\\\\": [\\\\n [\\\\n 21,\\\\n 4,\\\\n 364,\\\\n 4,\\\\n 364,\\\\n 78,\\\\n 21,\\\\n 78\\\\n ]\\\\n ]\\\\n },\\\\n \\\\\\"option\\\\\\": [],\\\\n \\\\\\"figure\\\\\\": [],\\\\n \\\\\\"answer\\\\\\": [\\\\n {\\\\n \\\\\\"text\\\\\\": \\\\\\"-17\\\\\\",\\\\n \\\\\\"pos_list\\\\\\": [\\\\n [\\\\n 225,\\\\n 51,\\\\n 262,\\\\n 51,\\\\n 262,\\\\n 70,\\\\n 225,\\\\n 70\\\\n ]\\\\n ]\\\\n }\\\\n ],\\\\n \\\\\\"type\\\\\\": \\\\\\"填空题\\\\\\",\\\\n \\\\\\"subquestion\\\\\\": []\\\\n }\\\\n }\\\\n ]\\\\n}\'\\",\\n \\"input_tokens\\": 80,\\n \\"output_tokens\\": 38\\n}","type":"json"}]', + 'title' => '试卷切题', + 'description' => '开通 EduTutor 服务。本接口在公测阶段,每个账号每天可以免费调用1000次。', + 'responseParamsDescription' => '#### 算法结果字段 data '."\n" + .'+ 需要序列化,字段说明如下:'."\n" + ."\n" + .'|字段|类型|描述|示例值|'."\n" + .'|-----|---|--|--|'."\n" + .'questions | array | 模型切出来的题目数组。| '."\n" + .'questions[i].pos_list | array | 第i道题目的坐标框(可能含有多个)。 | [[21,0,364,0,364,82,21,82]] | '."\n" + .'questions[i].sub_images | array | 根据坐标框提取出来的子图图片链接(7天有效)。| |'."\n" + .'questions[i].merged_image | string | 所有子图合并之后的题目完整图片链接(7天有效)。| |'."\n" + .'questions[i].info | object | 题目结构化信息。| |'."\n" + .'questions[i].info.type | string | 题目类型:选择题/填空题/判断题/问答题/作文题/其他。 | 填空题 |'."\n" + .'questions[i].info.stem | array |题干信息。| | '."\n" + .'questions[i].info.stem.text | string | 题干文本信息。| | '."\n" + .'questions[i].info.stem.pos_list | array | 题干坐标框信息。| |'."\n" + .'questions[i].info.option | array | 选项信息。| | '."\n" + .'questions[i].info.option[j].text | string | 选项文本信息。| |'."\n" + .'questions[i].info.option[j].pos_list | array | 选项位置信息。 | | '."\n" + .'questions[i].info.figure | array | 插图信息。| |'."\n" + .'questions[i].info.figure[k].pos_list | array | 插图位置信息。| |'."\n" + .'questions[i].info.answer | array | 答案信息。 | |'."\n" + .'questions[i].info.answer[m].pos_list | array | 答案位置信息。| "-17" |'."\n" + .'questions[i].info.answer[m].text | string | 答案文本信息。| | '."\n" + .'questions[i].info.subquestion | array | 子题信息(结构和info一致)。| |'."\n" + ."\n" + .'举例:'."\n" + .'```'."\n" + .'{'."\n" + .' "questions": ['."\n" + .' {'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 0,'."\n" + .' 364,'."\n" + .' 82,'."\n" + .' 21,'."\n" + .' 82'."\n" + .' ]'."\n" + .' ],'."\n" + .' "sub_images": ['."\n" + .' "http://xxxxx/sub_images/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB_0_0.png"'."\n" + .' ],'."\n" + .' "merged_image": "http://xxxxx/sub_images/1CE2851D-96D6-51D0-8ADA-EB7ACAF374BB.png",'."\n" + .' "info": {'."\n" + .' "stem": {'."\n" + .' "text": "8. 若 \\\\\\\\(a + b = -1\\\\\\\\), \\\\\\\\(ab = 4\\\\\\\\), 则 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值为 _ 。",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 21,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 4,'."\n" + .' 364,'."\n" + .' 78,'."\n" + .' 21,'."\n" + .' 78'."\n" + .' ]'."\n" + .' ]'."\n" + .' },'."\n" + .' "option": [],'."\n" + .' "figure": [],'."\n" + .' "answer": ['."\n" + .' {'."\n" + .' "text": "-17",'."\n" + .' "pos_list": ['."\n" + .' ['."\n" + .' 225,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 51,'."\n" + .' 262,'."\n" + .' 70,'."\n" + .' 225,'."\n" + .' 70'."\n" + .' ]'."\n" + .' ]'."\n" + .' }'."\n" + .' ],'."\n" + .' "type": "填空题",'."\n" + .' "subquestion": []'."\n" + .' }'."\n" + .' }'."\n" + .' ]'."\n" + .'}'."\n" + .'```', + ], + 'AnswerSSE' => [ + 'summary' => '流式答题解析接口,客户输入需要解答题题目文本或图片,算法会返回题目详细的解答内容。', + 'path' => '/service/answerSSE', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + 'sse', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/octet-stream', + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'workspaceId', + 'in' => 'query', + 'schema' => [ + 'description' => '当前请求所使用的百炼业务空间 id。', + 'type' => 'string', + 'required' => true, + 'example' => 'llm-1ijrzuv3v0ivvls7', + ], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'description' => '请求body。', + 'type' => 'object', + 'properties' => [ + 'messages' => [ + 'description' => '多轮对话内容。', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'role' => [ + 'description' => '当前对话的角色。', + 'type' => 'string', + 'required' => true, + 'example' => 'user', + 'enum' => [ + 'user', + 'assistant', + ], + ], + 'content' => [ + 'description' => '当前对话内容。', + 'type' => 'array', + 'items' => [ + 'description' => '对话内容,可以是文本(text)、图片(image)。', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'type' => 'string', + 'example' => '{"image": "image-url"}'."\n" + .'{"text": "回答这个问题"}', + 'description' => '文本或图片链接。', + ], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'parameters' => [ + 'description' => '参数配置。', + 'type' => 'object', + 'properties' => [ + 'grade' => [ + 'description' => '年级,输入为整型数字,可选如下:'."\n" + .'0--学前、'."\n" + .'1--一年级、'."\n" + .'2--二年级、'."\n" + .'3--三年级、'."\n" + .'4--四年级、'."\n" + .'5--五年级、'."\n" + .'6--六年级、'."\n" + .'7--七年级(初一)、'."\n" + .'8--八年级(初二)、'."\n" + .'9--九年级(初三)、'."\n" + .'10--高一、'."\n" + .'11--高二、'."\n" + .'12--高三、'."\n" + .'14--大学一年级、'."\n" + .'15--大学二年级、'."\n" + .'16--大学三年级、'."\n" + .'17--大学四年级、'."\n" + .'99--其他。', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '6', + 'default' => '0', + ], + 'stage' => [ + 'description' => '学段。', + 'type' => 'string', + 'required' => false, + 'example' => 'other', + 'default' => 'other', + 'enum' => [ + 'other', + 'pre', + 'elementary', + 'middle', + 'high', + 'higher', + ], + ], + 'subject' => [ + 'description' => '学科名称。', + 'type' => 'string', + 'required' => false, + 'example' => 'other', + 'default' => 'other', + 'enum' => [ + 'other', + 'math', + 'chinese', + 'english', + 'physics', + 'chemistry', + 'biology', + 'history', + 'geography', + 'politics', + 'program', + ], + ], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'description' => '请求id,每次请求都是唯一值,便于后续排查问题。', + 'type' => 'string', + 'example' => 'CED92479-FFA7-5B8F-AE6F-C8693BB4941C', + ], + 'success' => [ + 'description' => '调用是否成功。', + 'type' => 'boolean', + 'example' => 'True', + ], + 'code' => [ + 'description' => '响应状态码。', + 'type' => 'string', + 'example' => 'SUCCESS', + ], + 'httpStatusCode' => [ + 'description' => 'http状态码。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'message' => [ + 'description' => '返回码描述。', + 'type' => 'string', + 'example' => 'success', + ], + 'data' => [ + 'description' => '返回结果。', + 'type' => 'string', + 'example' => '\'{"message": {"content": [{"text": "### 【考点分析】:\\\\n本题涉及的核心知识点包括代数表达式的简化和代值计算。题目给出了 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\) 两个条件,要求我们求解表达式 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值。这类题目常见于代数基础部分,考查学生对代数式的基本运算和代入法的掌握。\\\\n\\\\n### 【方法点拨】:\\\\n1. **简化表达式**:首先对给定的表达式进行简化,合并同类项。\\\\n2. **代入已知条件**:将 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\) 代入简化后的表达式中,进行计算。\\\\n3. **逐步求解**:通过逐步代入和计算,得到最终结果。\\\\n\\\\n### 【详细解析】:\\\\n\\\\n#### 第一步:简化表达式\\\\n表达式为 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\)。\\\\n\\\\n先去掉括号并合并同类项:\\\\n\\\\\\\\[\\\\n(4a - 5b - 3ab) - (3a - 6b + ab) = 4a - 5b - 3ab - 3a + 6b - ab\\\\n\\\\\\\\]\\\\n\\\\n合并同类项:\\\\n\\\\\\\\[\\\\n= (4a - 3a) + (-5b + 6b) + (-3ab - ab) = a + b - 4ab\\\\n\\\\\\\\]\\\\n\\\\n#### 第二步:代入已知条件\\\\n根据题目条件 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\),将这些值代入简化后的表达式:\\\\n\\\\\\\\[\\\\na + b - 4ab = -1 - 4 \\\\\\\\times 4 = -1 - 16 = -17\\\\n\\\\\\\\]\\\\n\\\\n#### 第三步:得出最终结果\\\\n因此,表达式的值为 \\\\\\\\(-17\\\\\\\\)。\\\\n\\\\n### 【最终答案】:\\\\n\\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\) \\\\n\\\\n所以,该表达式的值为 \\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\)。"}], "role": "assistant"}}\'', + ], + 'finish_reason' => [ + 'description' => '流式输出标志位,用于判断流式输出是否结果,结束时返回stop。', + 'type' => 'string', + 'example' => 'stop', + ], + 'input_tokens' => [ + 'description' => '此次调用输入消耗的token数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '654', + ], + 'output_tokens' => [ + 'description' => '此次调用输出消耗的token数。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '457', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CED92479-FFA7-5B8F-AE6F-C8693BB4941C\\",\\n \\"success\\": true,\\n \\"code\\": \\"SUCCESS\\",\\n \\"httpStatusCode\\": 200,\\n \\"message\\": \\"success\\",\\n \\"data\\": \\"\'{\\\\\\"message\\\\\\": {\\\\\\"content\\\\\\": [{\\\\\\"text\\\\\\": \\\\\\"### 【考点分析】:\\\\\\\\\\\\\\\\n本题涉及的核心知识点包括代数表达式的简化和代值计算。题目给出了 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 和 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 两个条件,要求我们求解表达式 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 的值。这类题目常见于代数基础部分,考查学生对代数式的基本运算和代入法的掌握。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n### 【方法点拨】:\\\\\\\\\\\\\\\\n1. **简化表达式**:首先对给定的表达式进行简化,合并同类项。\\\\\\\\\\\\\\\\n2. **代入已知条件**:将 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 和 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 代入简化后的表达式中,进行计算。\\\\\\\\\\\\\\\\n3. **逐步求解**:通过逐步代入和计算,得到最终结果。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n### 【详细解析】:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n#### 第一步:简化表达式\\\\\\\\\\\\\\\\n表达式为 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n先去掉括号并合并同类项:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\n(4a - 5b - 3ab) - (3a - 6b + ab) = 4a - 5b - 3ab - 3a + 6b - ab\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n合并同类项:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\n= (4a - 3a) + (-5b + 6b) + (-3ab - ab) = a + b - 4ab\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n#### 第二步:代入已知条件\\\\\\\\\\\\\\\\n根据题目条件 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(a + b = -1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) 和 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(ab = 4\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\),将这些值代入简化后的表达式:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[\\\\\\\\\\\\\\\\na + b - 4ab = -1 - 4 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\times 4 = -1 - 16 = -17\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\]\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n#### 第三步:得出最终结果\\\\\\\\\\\\\\\\n因此,表达式的值为 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(-17\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)。\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n### 【最终答案】:\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\boxed{-17}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\) \\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\\n所以,该表达式的值为 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\boxed{-17}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\)。\\\\\\"}], \\\\\\"role\\\\\\": \\\\\\"assistant\\\\\\"}}\'\\",\\n \\"finish_reason\\": \\"stop\\",\\n \\"input_tokens\\": 654,\\n \\"output_tokens\\": 457\\n}","type":"json"}]', + 'title' => '解题辅导', + 'description' => '开通 EduTutor 服务。本接口在公测阶段,每个账号每天可以免费调用1000次。', + 'responseParamsDescription' => '### 算法结果字段 data'."\n" + .'+ 需要序列化,字段说明如下:'."\n" + ."\n" + .'| 名称 | 类型 | 描述 | 示例值 |'."\n" + .'|-----|------|-----|-------|'."\n" + .'| message | array | | |'."\n" + .'| message[0].content | array | | |'."\n" + .'| message[0].content[0].text | string | 大模型解题结果。 | "### 【考点分析】:\\\\n本题涉及的核心知识点包括代数表..." |'."\n" + .'| message[0].role | string | 角色。 | "assistant" |'."\n" + ."\n" + .'举例如下:'."\n" + .'```'."\n" + .'{'."\n" + .' "message": {'."\n" + .' "content": ['."\n" + .' {'."\n" + .' "text": "### 【考点分析】:\\\\n本题涉及的核心知识点包括代数表达式的简化和代值计算。题目给出了 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\) 两个条件,要求我们求解表达式 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\) 的值。这类题目常见于代数基础部分,考查学生对代数式的基本运算和代入法的掌握。\\\\n\\\\n### 【方法点拨】:\\\\n1. **简化表达式**:首先对给定的表达式进行简化,合并同类项。\\\\n2. **代入已知条件**:将 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\) 代入简化后的表达式中,进行计算。\\\\n3. **逐步求解**:通过逐步代入和计算,得到最终结果。\\\\n\\\\n### 【详细解析】:\\\\n\\\\n#### 第一步:简化表达式\\\\n表达式为 \\\\\\\\((4a - 5b - 3ab) - (3a - 6b + ab)\\\\\\\\)。\\\\n\\\\n先去掉括号并合并同类项:\\\\n\\\\\\\\[\\\\n(4a - 5b - 3ab) - (3a - 6b + ab) = 4a - 5b - 3ab - 3a + 6b - ab\\\\n\\\\\\\\]\\\\n\\\\n合并同类项:\\\\n\\\\\\\\[\\\\n= (4a - 3a) + (-5b + 6b) + (-3ab - ab) = a + b - 4ab\\\\n\\\\\\\\]\\\\n\\\\n#### 第二步:代入已知条件\\\\n根据题目条件 \\\\\\\\(a + b = -1\\\\\\\\) 和 \\\\\\\\(ab = 4\\\\\\\\),将这些值代入简化后的表达式:\\\\n\\\\\\\\[\\\\na + b - 4ab = -1 - 4 \\\\\\\\times 4 = -1 - 16 = -17\\\\n\\\\\\\\]\\\\n\\\\n#### 第三步:得出最终结果\\\\n因此,表达式的值为 \\\\\\\\(-17\\\\\\\\)。\\\\n\\\\n### 【最终答案】:\\\\n\\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\) \\\\n\\\\n所以,该表达式的值为 \\\\\\\\(\\\\\\\\boxed{-17}\\\\\\\\)。"'."\n" + .' }'."\n" + .' ],'."\n" + .' "role": "assistant"'."\n" + .' }'."\n" + .'}'."\n" + .'```', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-hangzhou', + 'endpoint' => 'edututor.cn-hangzhou.aliyuncs.com', + ], + ], +]; |
