{"id":234,"date":"2026-01-07T20:41:42","date_gmt":"2026-01-07T12:41:42","guid":{"rendered":"http:\/\/ai.taichi-maker.com\/?page_id=234"},"modified":"2026-01-12T15:53:51","modified_gmt":"2026-01-12T07:53:51","slug":"messages","status":"publish","type":"page","link":"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/messages\/","title":{"rendered":"OpenAI API\u517c\u5bb9\u683c\u5f0f\u8bf7\u6c42\u53c2\u6570 &#8211; messages"},"content":{"rendered":"\n<div class=\"wp-block-columns alignfull is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p>\u5bfc\u822a\u680f\uff1a<a href=\"http:\/\/ai.taichi-maker.com\/\">\u9996\u9875<\/a> \/ <a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/\">AI\u5f00\u53d1\u53c2\u8003\u8d44\u6599<\/a> \/ <a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/\">OpenAI API \u517c\u5bb9\u683c\u5f0f\u53c2\u8003\u8d44\u6599<\/a> \/ <a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/\" data-type=\"link\" data-id=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/\">\u8bf7\u6c42\u53c2\u6570\u8be6\u89e3<\/a> \/ messages<\/p>\n\n\n\n<p style=\"border-width:1px;border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px\">\u5982\u679c\u60a8\u60f3\u6df1\u5165\u4e86\u89e3\u5982\u4f55\u501f\u52a9 OpenAI API \u6253\u9020\u4eba\u5de5\u667a\u80fd\u786c\u4ef6\uff0c\u6b22\u8fce\u8bbf\u95ee<a href=\"http:\/\/ai.taichi-maker.com\/index.php\/homepage\/ai-tutorial-index\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u672c\u7ad9\u6559\u7a0b\u76ee\u5f55\u9875<\/a>\uff0c\u67e5\u770b\u592a\u6781\u521b\u5ba2\u56e2\u961f\u4e3a\u60a8\u7cbe\u5fc3\u51c6\u5907\u7684\u7cfb\u5217\u6559\u7a0b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u6570\u8bf4\u660e<\/h2>\n\n\n\n<p><code>messages<\/code>\u7528\u4e8e\u6784\u5efa\u4e0e AI \u6a21\u578b\u7684\u5b8c\u6574\u5bf9\u8bdd\u5386\u53f2\u3002\u6b64\u53c2\u6570\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u5176\u4e2d\u5305\u542b\u591a\u4e2a\u5bf9\u8c61\u3002\u6bcf\u4e2a\u5bf9\u8c61\u90fd\u662f\u4e00\u4e2a\u7ed3\u6784\u5316\u7684\u6570\u636e\u5355\u5143\uff0c\u5305\u542b\u4ee5\u4e0b\u6838\u5fc3\u5b57\u6bb5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>role<\/strong>\uff1a\u6d88\u606f\u7684\u89d2\u8272\u7c7b\u578b\uff0c\u7528\u4e8e\u5b9a\u4e49\u6d88\u606f\u7684\u6765\u6e90\u548c\u7528\u9014\u3002<\/li>\n\n\n\n<li><strong>content<\/strong>\uff1a\u6d88\u606f\u7684\u5b9e\u9645\u6587\u672c\u5185\u5bb9<\/li>\n\n\n\n<li><strong>name<\/strong>\uff08\u53ef\u9009\uff09\uff1a\u6d88\u606f\u53d1\u9001\u8005\u7684\u6807\u8bc6\u540d\u79f0<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e2a\u53c2\u6570\u7684\u8bbe\u8ba1\u7406\u5ff5\u662f<strong>\u6a21\u62df\u771f\u5b9e\u5bf9\u8bdd\u573a\u666f<\/strong>\uff0c\u901a\u8fc7\u7ef4\u62a4\u5b8c\u6574\u7684\u5bf9\u8bdd\u4e0a\u4e0b\u6587\uff0c\u8ba9AI\u6a21\u578b\u80fd\u591f\u7406\u89e3\u5f53\u524d\u5bf9\u8bdd\u7684\u6765\u9f99\u53bb\u8109\uff0c\u4ece\u800c\u751f\u6210\u66f4\u52a0\u8fde\u8d2f\u3001\u51c6\u786e\u548c\u7b26\u5408\u4e0a\u4e0b\u6587\u7684\u54cd\u5e94\u3002<\/p>\n\n\n\n<p>\u6d88\u606f\u6570\u7ec4\u7684<strong>\u987a\u5e8f\u548c\u7ed3\u6784<\/strong>\u5bf9\u6a21\u578b\u7684\u7406\u89e3\u81f3\u5173\u91cd\u8981\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6570\u7ec4\u4e2d\u7684\u6d88\u606f\u6309\u7167\u65f6\u95f4\u987a\u5e8f\u6392\u5217\uff0c\u4ece\u6700\u65e9\u5230\u6700\u65b0<\/li>\n\n\n\n<li>\u6bcf\u4e2a\u6d88\u606f\u90fd\u5305\u542b\u5b8c\u6574\u7684\u89d2\u8272\u548c\u5185\u5bb9\u4fe1\u606f<\/li>\n\n\n\n<li>\u6a21\u578b\u4f1a\u6839\u636e\u6574\u4e2a\u5bf9\u8bdd\u5386\u53f2\u6765\u7406\u89e3\u5f53\u524d\u67e5\u8be2\u7684\u4e0a\u4e0b\u6587<\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u7cbe\u5fc3\u8bbe\u8ba1<code>messages<\/code>\u6570\u7ec4\uff0c\u4f60\u53ef\u4ee5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u63d0\u4f9b\u7cfb\u7edf\u7ea7\u522b\u7684\u884c\u4e3a\u6307\u5bfc<\/li>\n\n\n\n<li>\u7ef4\u62a4\u591a\u8f6e\u5bf9\u8bdd\u7684\u5b8c\u6574\u5386\u53f2<\/li>\n\n\n\n<li>\u63a7\u5236\u6a21\u578b\u7684\u54cd\u5e94\u98ce\u683c\u548c\u5185\u5bb9<\/li>\n\n\n\n<li>\u5b9e\u73b0\u590d\u6742\u7684\u5bf9\u8bdd\u903b\u8f91\u548c\u4e0a\u4e0b\u6587\u7ba1\u7406<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89d2\u8272\u7c7b\u578b\u6982\u8ff0<\/strong><\/h3>\n\n\n\n<p>messages \u6570\u7ec4\u4e2d\u7684\u6d88\u606f\u53ef\u4ee5\u5305\u542b\u4e09\u79cd\u89d2\u8272\u7c7b\u578b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>system<\/code><\/strong>\uff1a\u7528\u4e8e\u8bbe\u7f6e\u6a21\u578b\u7684\u884c\u4e3a\u5e76\u4e0b\u8fbe\u6307\u4ee4\uff0c\u5f15\u5bfc\u6a21\u578b\u5982\u4f55\u5bf9\u540e\u7eed\u7684\u7528\u6237\u7684\u67e5\u8be2\u505a\u51fa\u54cd\u5e94\u3002<\/li>\n\n\n\n<li><strong><code>user<\/code><\/strong>\uff1a\u4ee3\u8868\u7528\u6237\u8f93\u5165\u7684\u67e5\u8be2\u6216\u95ee\u9898\u3002\u662f\u6a21\u578b\u751f\u6210\u56de\u590d\u7684\u4e3b\u8981\u89e6\u53d1\u70b9\u3002<\/li>\n\n\n\n<li><strong><code>assistant<\/code><\/strong>\uff1a\u4ee3\u8868\u6a21\u578b\u4e4b\u524d\u751f\u6210\u7684\u56de\u590d\uff0c\u7528\u4e8e\u6784\u5efa\u5bf9\u8bdd\u4e0a\u4e0b\u6587\u3002\u5728\u591a\u8f6e\u5bf9\u8bdd\u4e2d\u7279\u522b\u91cd\u8981\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6bcf\u4e2a\u89d2\u8272\u7684\u5177\u4f53\u4f5c\u7528\u548c\u7528\u6cd5\u5c06\u5728\u540e\u7eed\u7684\u793a\u4f8b\u90e8\u5206\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5fc5\u9700\u6027<\/h2>\n\n\n\n<p><code>messages<\/code>\u662fOpenAI API\u8bf7\u6c42\u4e2d\u7684<strong>\u5fc5\u9700\u53c2\u6570<\/strong>\uff0c\u5fc5\u987b\u5728\u8bf7\u6c42\u4f53\u4e2d\u63d0\u4f9b\u3002\u5982\u679c\u7f3a\u5c11\u6b64\u53c2\u6570\uff0cAPI\u5c06\u8fd4\u56de\u9519\u8bef\uff0c\u65e0\u6cd5\u5b8c\u6210\u8bf7\u6c42\u3002<\/p>\n\n\n\n<p><strong>messages \u6570\u7ec4\u4e0d\u80fd\u4e3a\u7a7a<\/strong>\uff0c\u4e14\u6700\u540e\u4e00\u6761\u6d88\u606f\u5fc5\u987b\u662f <code>user<\/code> \u6216 <code>assistant<\/code>\u3002\u56e0\u6b64\uff0c\u5728\u6bcf\u6b21\u8bf7\u6c42\u4e2d\u901a\u5e38\u81f3\u5c11\u9700\u8981\u5305\u542b\u4e00\u6761 <code>user<\/code> \u6d88\u606f\u3002<code>system<\/code> \u89d2\u8272\u662f\u53ef\u9009\u7684\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u51b3\u5b9a\u662f\u5426\u5305\u542b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u57fa\u672c\u5bf9\u8bdd\u683c\u5f0f<\/h2>\n\n\n\n<p>\u57fa\u672c\u5bf9\u8bdd\u683c\u5f0f\u662f\u6700\u7b80\u5355\u7684\u6d88\u606f\u7ec4\u7ec7\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u5355\u8f6e\u5bf9\u8bdd\u573a\u666f\u3002\u8fd9\u79cd\u683c\u5f0f\u901a\u5e38\u5305\u542b\u4e00\u6761 <code>system<\/code> \u6d88\u606f\uff08\u7528\u4e8e\u8bbe\u5b9a\u6a21\u578b\u884c\u4e3a\uff09\u548c\u4e00\u6761 <code>user<\/code> \u6d88\u606f\uff08\u7528\u4e8e\u63d0\u51fa\u95ee\u9898\u6216\u8bf7\u6c42\uff09\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>&#91;\n  {\n    \"role\": \"system\",\n    \"content\": \"\u4f60\u662f\u4e00\u4f4d\u7f16\u7a0b\u4e13\u5bb6\uff0c\u64c5\u957f\u89e3\u91ca\u590d\u6742\u7684\u6280\u672f\u6982\u5ff5\u3002\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"\u8bf7\u7528\u7b80\u5355\u7684\u8bdd\u89e3\u91caJavaScript\u4e2d\u7684\u95ed\u5305\u3002\"\n  }\n&#93;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">&#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">system<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u4f60\u662f\u4e00\u4f4d\u7f16\u7a0b\u4e13\u5bb6\uff0c\u64c5\u957f\u89e3\u91ca\u590d\u6742\u7684\u6280\u672f\u6982\u5ff5\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8bf7\u7528\u7b80\u5355\u7684\u8bdd\u89e3\u91caJavaScript\u4e2d\u7684\u95ed\u5305\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89d2\u8272\u8be6\u89e3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>system<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>system<\/code> \u6d88\u606f\u8bbe\u5b9a\u4e86\u6a21\u578b\u7684\u89d2\u8272\u4e3a&#8221;\u7f16\u7a0b\u4e13\u5bb6&#8221;\uff0c\u8fd9\u610f\u5473\u7740\u540e\u7eed\u7684\u5bf9\u8bdd\u4e2d\uff0c\u6a21\u578b\u4f1a\u4ee5\u7f16\u7a0b\u4e13\u5bb6\u7684\u8eab\u4efd\u6765\u56de\u7b54\u95ee\u9898\u3002 system \u6d88\u606f\u7684\u4f5c\u7528\u662f\u4e3a\u6574\u4e2a\u5bf9\u8bdd\u8bbe\u5b9a\u4e00\u4e2a\u57fa\u7840\u6846\u67b6\u548c\u4e0a\u4e0b\u6587\uff0c\u5b83\u6307\u5bfc\u6a21\u578b\u5982\u4f55\u7406\u89e3\u540e\u7eed\u7684\u7528\u6237\u8f93\u5165\u4ee5\u53ca\u5e94\u8be5\u4ee5\u4ec0\u4e48\u98ce\u683c\u8fdb\u884c\u54cd\u5e94\u3002<\/li>\n\n\n\n<li><strong><code>user<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>user<\/code> \u6d88\u606f\u662f\u5b9e\u9645\u7684\u95ee\u9898\u5185\u5bb9\uff0c\u7528\u6237\u5411\u6a21\u578b\u8be2\u95ee\u5173\u4e8e JavaScript \u95ed\u5305\u7684\u95ee\u9898\u3002 user \u6d88\u606f\u662f\u6bcf\u6b21\u5bf9\u8bdd\u7684\u8d77\u70b9\uff0c\u5b83\u5b9a\u4e49\u4e86\u6a21\u578b\u9700\u8981\u56de\u7b54\u7684\u5177\u4f53\u5185\u5bb9\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u591a\u8f6e\u5bf9\u8bdd\u683c\u5f0f<\/h2>\n\n\n\n<p>\u591a\u8f6e\u5bf9\u8bdd\u683c\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u7ef4\u62a4\u5bf9\u8bdd\u5386\u53f2\u7684\u573a\u666f\u3002\u5728\u8fd9\u79cd\u683c\u5f0f\u4e2d\uff0c\u9664\u4e86 <code>system<\/code> \u548c <code>user<\/code> \u6d88\u606f\u5916\uff0c\u8fd8\u4f1a\u5305\u542b <code>assistant<\/code> \u6d88\u606f\u6765\u8bb0\u5f55\u6a21\u578b\u4e4b\u524d\u7684\u56de\u590d\uff0c\u4ece\u800c\u4fdd\u6301\u5bf9\u8bdd\u7684\u8fde\u8d2f\u6027<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>&#91;\n  {\n    \"role\": \"system\",\n    \"content\": \"\u4f60\u662f\u4e00\u4f4d\u6570\u5b66\u8001\u5e08\uff0c\u5e2e\u52a9\u5b66\u751f\u89e3\u51b3\u6570\u5b66\u95ee\u9898\u3002\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"\u5982\u4f55\u6c42\u89e3\u4e8c\u6b21\u65b9\u7a0bx\u00b2 + 5x + 6 = 0\uff1f\"\n  },\n  {\n    \"role\": \"assistant\",\n    \"content\": \"\u8981\u89e3\u8fd9\u4e2a\u4e8c\u6b21\u65b9\u7a0b\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6c42\u6839\u516c\u5f0fx = (-b \u00b1 \u221a(b\u00b2 - 4ac))\/(2a)\u3002\\n\\n\u5bf9\u4e8e\u65b9\u7a0bx\u00b2 + 5x + 6 = 0\uff0c\u6211\u4eec\u6709a=1, b=5, c=6\u3002\u4ee3\u5165\u516c\u5f0f\uff1a\\nx = (-5 \u00b1 \u221a(25 - 24))\/2 = (-5 \u00b1 \u221a1)\/2 = (-5 \u00b1 1)\/2\\n\\n\u5f97\u5230\u4e24\u4e2a\u89e3\uff1ax = (-5 + 1)\/2 = -2 \u548c x = (-5 - 1)\/2 = -3\"\n  },\n  {\n    \"role\": \"user\",\n    \"content\": \"\u5982\u679c\u65b9\u7a0b\u662fx\u00b2 + 2x + 5 = 0\u5462\uff1f\"\n  }\n&#93;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">&#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">system<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u4f60\u662f\u4e00\u4f4d\u6570\u5b66\u8001\u5e08\uff0c\u5e2e\u52a9\u5b66\u751f\u89e3\u51b3\u6570\u5b66\u95ee\u9898\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u5982\u4f55\u6c42\u89e3\u4e8c\u6b21\u65b9\u7a0bx\u00b2 + 5x + 6 = 0\uff1f<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">assistant<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u8981\u89e3\u8fd9\u4e2a\u4e8c\u6b21\u65b9\u7a0b\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6c42\u6839\u516c\u5f0fx = (-b \u00b1 \u221a(b\u00b2 - 4ac))\/(2a)\u3002<\/span><span style=\"color: #EBCB8B\">\\n\\n<\/span><span style=\"color: #A3BE8C\">\u5bf9\u4e8e\u65b9\u7a0bx\u00b2 + 5x + 6 = 0\uff0c\u6211\u4eec\u6709a=1, b=5, c=6\u3002\u4ee3\u5165\u516c\u5f0f\uff1a<\/span><span style=\"color: #EBCB8B\">\\n<\/span><span style=\"color: #A3BE8C\">x = (-5 \u00b1 \u221a(25 - 24))\/2 = (-5 \u00b1 \u221a1)\/2 = (-5 \u00b1 1)\/2<\/span><span style=\"color: #EBCB8B\">\\n\\n<\/span><span style=\"color: #A3BE8C\">\u5f97\u5230\u4e24\u4e2a\u89e3\uff1ax = (-5 + 1)\/2 = -2 \u548c x = (-5 - 1)\/2 = -3<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u5982\u679c\u65b9\u7a0b\u662fx\u00b2 + 2x + 5 = 0\u5462\uff1f<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89d2\u8272\u8be6\u89e3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>system<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>system<\/code> \u6d88\u606f\u8bbe\u5b9a\u6a21\u578b\u4e3a&#8221;\u6570\u5b66\u8001\u5e08&#8221;\uff0c\u8fd9\u6307\u5bfc\u6a21\u578b\u5728\u6574\u4e2a\u5bf9\u8bdd\u8fc7\u7a0b\u4e2d\u4fdd\u6301\u4e13\u4e1a\u3001\u8010\u5fc3\u3001\u5584\u4e8e\u89e3\u91ca\u7684\u98ce\u683c\u6765\u5e2e\u52a9\u5b66\u751f\u5b66\u4e60\u6570\u5b66\u3002 system \u6d88\u606f\u5728\u8fd9\u91cc\u8d77\u5230\u7edf\u4e00\u5bf9\u8bdd\u57fa\u8c03\u7684\u4f5c\u7528\uff0c\u786e\u4fdd\u6a21\u578b\u5728\u540e\u7eed\u6240\u6709\u56de\u590d\u4e2d\u90fd\u4fdd\u6301\u8fd9\u4e2a\u89d2\u8272\u8bbe\u5b9a\u3002<\/li>\n\n\n\n<li><strong><code>user<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\u6709\u4e24\u6761 user \u6d88\u606f\u3002\u7b2c\u4e00\u6761 user \u6d88\u606f\u63d0\u51fa\u4e86\u7b2c\u4e00\u4e2a\u6570\u5b66\u95ee\u9898\uff0c\u7b2c\u4e8c\u6761 user \u6d88\u606f\u662f\u5728\u770b\u5230\u6a21\u578b\u56de\u7b54\u540e\u63d0\u51fa\u7684\u8ddf\u8fdb\u95ee\u9898\u3002 user \u6d88\u606f\u7684\u6570\u91cf\u51b3\u5b9a\u4e86\u5bf9\u8bdd\u7684\u8f6e\u6b21\uff0c\u6bcf\u4e00\u6761 user \u6d88\u606f\u90fd\u9700\u8981\u6a21\u578b\u8fdb\u884c\u4e00\u6b21\u56de\u590d\u3002<\/li>\n\n\n\n<li><strong><code>assistant<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>assistant<\/code> \u6d88\u606f\u8bb0\u5f55\u4e86\u6a21\u578b\u5bf9\u7b2c\u4e00\u4e2a\u95ee\u9898\u7684\u8be6\u7ec6\u89e3\u7b54\u3002 assistant \u6d88\u606f\u5728\u591a\u8f6e\u5bf9\u8bdd\u4e2d\u81f3\u5173\u91cd\u8981\uff0c\u5b83\u4fdd\u5b58\u4e86\u6a21\u578b\u7684\u56de\u590d\u5386\u53f2\uff0c\u4f7f\u5f97\u6a21\u578b\u80fd\u591f\u7406\u89e3\u5bf9\u8bdd\u7684\u4e0a\u4e0b\u6587\u3002\u5f53\u7528\u6237\u63d0\u51fa\u7b2c\u4e8c\u4e2a\u95ee\u9898\u65f6\uff0c\u6a21\u578b\u80fd\u591f\u57fa\u4e8e\u4e4b\u524d\u7684\u5bf9\u8bdd\u5185\u5bb9\uff08\u901a\u8fc7\u67e5\u770b assistant \u6d88\u606f\uff09\u6765\u7406\u89e3\u95ee\u9898\u7684\u80cc\u666f\uff0c\u5e76\u7ed9\u51fa\u76f8\u5173\u7684\u56de\u7b54\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u591a\u7528\u6237\u573a\u666f\u683c\u5f0f<\/h2>\n\n\n\n<p>\u591a\u7528\u6237\u573a\u666f\u683c\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u533a\u5206\u591a\u4e2a\u4e0d\u540c\u53d1\u8a00\u8005\u7684\u5bf9\u8bdd\u573a\u666f\u3002\u5728\u8fd9\u79cd\u683c\u5f0f\u4e2d\uff0c\u901a\u8fc7 <code>name<\/code> \u5b57\u6bb5\u660e\u786e\u6807\u8bc6\u6bcf\u6761\u6d88\u606f\u7684\u53d1\u9001\u8005\uff0c\u5e2e\u52a9\u6a21\u578b\u7406\u89e3\u590d\u6742\u7684\u5bf9\u8bdd\u7ed3\u6784\u548c\u591a\u65b9\u4e92\u52a8\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u590d\u5236\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>&#91;\n  {\n    \"role\": \"system\",\n    \"content\": \"\u4f60\u662f\u4e00\u4e2a\u5ba2\u670d\u52a9\u624b\uff0c\u9700\u8981\u540c\u65f6\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7684\u54a8\u8be2\u3002\"\n  },\n  {\n    \"role\": \"user\",\n    \"name\": \"\u5f20\u4e09\",\n    \"content\": \"\u6211\u60f3\u54a8\u8be2\u4e00\u4e0b\u4ea7\u54c1A\u7684\u4ef7\u683c\u3002\"\n  },\n  {\n    \"role\": \"assistant\",\n    \"content\": \"\u60a8\u597d\u5f20\u4e09\uff0c\u6211\u662f\u5ba2\u670d\u52a9\u624b\u3002\u8bf7\u95ee\u60a8\u60f3\u4e86\u89e3\u54ea\u4e2a\u7248\u672c\u7684\u4ea7\u54c1A\uff1f\"\n  },\n  {\n    \"role\": \"user\",\n    \"name\": \"\u674e\u56db\",\n    \"content\": \"\u6211\u662f\u674e\u56db\uff0c\u6211\u60f3\u9000\u8d27\uff0c\u8bf7\u95ee\u6d41\u7a0b\u662f\u600e\u6837\u7684\uff1f\"\n  },\n  {\n    \"role\": \"user\",\n    \"name\": \"\u5f20\u4e09\",\n    \"content\": \"\u6211\u8981\u6807\u51c6\u7248\u7684\u4ea7\u54c1A\u3002\"\n  }\n&#93;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #ECEFF4\">&#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">system<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u4f60\u662f\u4e00\u4e2a\u5ba2\u670d\u52a9\u624b\uff0c\u9700\u8981\u540c\u65f6\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7684\u54a8\u8be2\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">name<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u5f20\u4e09<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u6211\u60f3\u54a8\u8be2\u4e00\u4e0b\u4ea7\u54c1A\u7684\u4ef7\u683c\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">assistant<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u60a8\u597d\u5f20\u4e09\uff0c\u6211\u662f\u5ba2\u670d\u52a9\u624b\u3002\u8bf7\u95ee\u60a8\u60f3\u4e86\u89e3\u54ea\u4e2a\u7248\u672c\u7684\u4ea7\u54c1A\uff1f<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">name<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u674e\u56db<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u6211\u662f\u674e\u56db\uff0c\u6211\u60f3\u9000\u8d27\uff0c\u8bf7\u95ee\u6d41\u7a0b\u662f\u600e\u6837\u7684\uff1f<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">},<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">role<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">user<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">name<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u5f20\u4e09<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u6211\u8981\u6807\u51c6\u7248\u7684\u4ea7\u54c1A\u3002<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u89d2\u8272\u8be6\u89e3<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>system<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>system<\/code> \u6d88\u606f\u8bbe\u5b9a\u4e86\u6a21\u578b\u7684\u804c\u8d23\u4e3a&#8221;\u5ba2\u670d\u52a9\u624b&#8221;\uff0c\u9700\u8981\u540c\u65f6\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7684\u54a8\u8be2\u3002 system \u6d88\u606f\u5728\u8fd9\u91cc\u5b9a\u4e49\u4e86\u6a21\u578b\u7684\u57fa\u672c\u804c\u8d23\u548c\u5de5\u4f5c\u6a21\u5f0f\uff0c\u4e3a\u540e\u7eed\u7684\u5ba2\u6237\u670d\u52a1\u5bf9\u8bdd\u5960\u5b9a\u57fa\u7840\u3002<\/li>\n\n\n\n<li><strong><code>user<\/code> \u89d2\u8272\u914d\u5408<code>name<\/code>\u5b57\u6bb5<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6bcf\u6761 user \u6d88\u606f\u90fd\u5305\u542b\u4e86 <code>name<\/code> \u5b57\u6bb5\u6765\u6807\u8bc6\u53d1\u8a00\u8005\u7684\u8eab\u4efd\uff1a\u5f20\u4e09\u54a8\u8be2\u4ea7\u54c1A\u4ef7\u683c\uff0c\u674e\u56db\u54a8\u8be2\u9000\u8d27\u6d41\u7a0b\u3002name \u5b57\u6bb5\u4f7f\u6a21\u578b\u80fd\u591f\u533a\u5206\u4e0d\u540c\u7684\u7528\u6237\uff0c\u7406\u89e3\u5f53\u524d\u662f\u54ea\u4f4d\u7528\u6237\u5728\u53d1\u8a00\uff0c\u4ee5\u53ca\u4ed6\u4eec\u5404\u81ea\u7684\u5bf9\u8bdd\u4e0a\u4e0b\u6587\u3002 name \u5b57\u6bb5\u5728\u591a\u7528\u6237\u573a\u666f\u4e2d\u81f3\u5173\u91cd\u8981\uff0c\u5b83\u5e2e\u52a9\u6a21\u578b\u7ef4\u62a4\u6bcf\u4e2a\u7528\u6237\u7684\u72ec\u7acb\u5bf9\u8bdd\u7ebf\u7d22\uff0c\u907f\u514d\u6df7\u6dc6\u4e0d\u540c\u7528\u6237\u7684\u9700\u6c42\u3002<\/li>\n\n\n\n<li><strong><code>assistant<\/code> \u89d2\u8272<\/strong>\uff1a\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>assistant<\/code> \u6d88\u606f\u662f\u6a21\u578b\u5bf9\u7b2c\u4e00\u4e2a\u7528\u6237\uff08\u5f20\u4e09\uff09\u7684\u56de\u590d\u3002 assistant \u6d88\u606f\u9700\u8981\u6839\u636e\u4e0d\u540c\u7684\u7528\u6237\u5206\u522b\u8fdb\u884c\u56de\u590d\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6a21\u578b\u9700\u8981\u6839\u636e name \u5b57\u6bb5\u6765\u8ffd\u8e2a\u6bcf\u4e2a\u7528\u6237\u7684\u5bf9\u8bdd\u5386\u53f2\u548c\u672a\u5b8c\u6210\u7684\u9700\u6c42\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u5efa\u8bae<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5408\u7406\u8bbe\u8ba1\u7cfb\u7edf\u6d88\u606f<\/strong>\uff1a\u7cfb\u7edf\u6d88\u606f\u5e94\u8be5\u6e05\u6670\u660e\u786e\uff0c\u8bbe\u5b9a\u6a21\u578b\u7684\u89d2\u8272\u548c\u54cd\u5e94\u98ce\u683c\u3002\u907f\u514d\u8fc7\u4e8e\u5197\u957f\u7684\u7cfb\u7edf\u6d88\u606f\uff0c\u786e\u4fdd\u6838\u5fc3\u6307\u4ee4\u7a81\u51fa<\/li>\n\n\n\n<li><strong>\u63a7\u5236\u6d88\u606f\u6570\u7ec4\u957f\u5ea6<\/strong>\uff1a\u5bf9\u4e8e\u591a\u8f6e\u5bf9\u8bdd\uff0c\u7ef4\u62a4\u5b8c\u6574\u7684\u5bf9\u8bdd\u5386\u53f2\uff0c\u4f46\u53ef\u8003\u8651\u622a\u65ad\u8fc7\u957f\u7684\u5386\u53f2\u4ee5\u63a7\u5236token\u4f7f\u7528\u3002\u5bf9\u4e8e\u957f\u5bf9\u8bdd\uff0c\u53ef\u4ee5\u53ea\u4fdd\u7559\u6700\u8fd1\u51e0\u8f6e\u7684\u5173\u952e\u5bf9\u8bdd<\/li>\n\n\n\n<li><strong>\u4f18\u5316\u7528\u6237\u6d88\u606f\u683c\u5f0f<\/strong>\uff1a\u7528\u6237\u6d88\u606f\u5e94\u8be5\u7b80\u6d01\u660e\u4e86\uff0c\u907f\u514d\u5197\u4f59\u4fe1\u606f\u3002\u5c06\u590d\u6742\u95ee\u9898\u5206\u89e3\u4e3a\u591a\u4e2a\u7b80\u5355\u7684\u95ee\u9898\uff0c\u6216\u8005\u4f7f\u7528\u7ed3\u6784\u5316\u683c\u5f0f\u63d0\u9ad8\u53ef\u8bfb\u6027<\/li>\n\n\n\n<li><strong>\u5408\u7406\u5229\u7528\u89d2\u8272\u7c7b\u578b<\/strong>\uff1a\u6839\u636e\u5bf9\u8bdd\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u89d2\u8272\u7ec4\u5408\u3002\u5355\u8f6e\u5bf9\u8bdd\u4f7f\u7528system\u548cuser\uff0c\u591a\u8f6e\u5bf9\u8bdd\u9700\u8981\u5305\u542bassistant\u6d88\u606f\u6765\u7ef4\u62a4\u4e0a\u4e0b\u6587<\/li>\n\n\n\n<li><strong>\u5904\u7406\u6d88\u606f\u987a\u5e8f<\/strong>\uff1a\u786e\u4fdd\u6d88\u606f\u6309\u7167\u65f6\u95f4\u987a\u5e8f\u6392\u5217\uff0c\u4ece\u6700\u65e9\u5230\u6700\u65b0\u3002\u6700\u540e\u4e00\u6761\u6d88\u606f\u5fc5\u987b\u662fuser\u6216assistant\u89d2\u8272<\/li>\n\n\n\n<li><strong>\u4f7f\u7528name\u5b57\u6bb5\u533a\u5206\u53d1\u8a00\u8005<\/strong>\uff1a\u5728\u591a\u7528\u6237\u573a\u666f\u4e2d\uff0c\u4f7f\u7528&#8221;name&#8221;\u5b57\u6bb5\u53ef\u4ee5\u533a\u5206\u4e0d\u540c\u7684\u53d1\u8a00\u8005\uff0c\u5e2e\u52a9\u6a21\u578b\u7406\u89e3\u5bf9\u8bdd\u7ed3\u6784<\/li>\n\n\n\n<li><strong>\u63a7\u5236token\u4f7f\u7528<\/strong>\uff1a\u76d1\u63a7\u6d88\u606f\u6570\u7ec4\u7684\u603btoken\u6570\uff0c\u907f\u514d\u8d85\u8fc7\u6a21\u578b\u7684\u6700\u5927\u4e0a\u4e0b\u6587\u9650\u5236\u3002\u5bf9\u4e8e\u957f\u5bf9\u8bdd\uff0c\u8003\u8651\u4f7f\u7528\u6458\u8981\u6216\u622a\u65ad\u7b56\u7565<\/li>\n\n\n\n<li><strong>\u6d4b\u8bd5\u4e0d\u540c\u6d88\u606f\u7ed3\u6784<\/strong>\uff1a\u5bf9\u4e8e\u5173\u952e\u5e94\u7528\uff0c\u6d4b\u8bd5\u4e0d\u540c\u7684\u6d88\u606f\u7ec4\u7ec7\u65b9\u5f0f\uff0c\u627e\u5230\u6700\u9002\u5408\u4f60\u5e94\u7528\u573a\u666f\u7684\u5bf9\u8bdd\u7ed3\u6784<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u95ee\uff1amessages\u6570\u7ec4\u7684\u6700\u5927\u957f\u5ea6\u662f\u591a\u5c11\uff1f<\/strong><br>\u7b54\uff1amessages\u6570\u7ec4\u7684\u957f\u5ea6\u53d7\u6a21\u578b\u7684\u6700\u5927\u4e0a\u4e0b\u6587\u7a97\u53e3\u9650\u5236\u3002\u4e0d\u540c\u6a21\u578b\u6709\u4e0d\u540c\u7684\u9650\u5236\uff0c\u901a\u5e38\u57284K\u5230128K tokens\u4e4b\u95f4\u3002\u4f60\u9700\u8981\u786e\u4fdd\u6574\u4e2amessages\u6570\u7ec4\uff08\u5305\u62ec\u6240\u6709\u6d88\u606f\u5185\u5bb9\uff09\u7684\u603btoken\u6570\u4e0d\u8d85\u8fc7\u6a21\u578b\u7684\u6700\u5927\u9650\u5236\u3002\u5982\u679c\u8d85\u8fc7\u9650\u5236\uff0cAPI\u4f1a\u8fd4\u56de\u9519\u8bef\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u4ec0\u4e48\u65f6\u5019\u9700\u8981\u4f7f\u7528assistant\u89d2\u8272\uff1f<\/strong><br>\u7b54\uff1a\u5728\u4ee5\u4e0b\u60c5\u51b5\u4e0b\u9700\u8981\u4f7f\u7528assistant\u89d2\u8272\uff1a1\uff09\u591a\u8f6e\u5bf9\u8bdd\u573a\u666f\uff0c\u9700\u8981\u7ef4\u62a4\u5bf9\u8bdd\u4e0a\u4e0b\u6587\uff1b2\uff09\u9700\u8981\u6a21\u578b\u57fa\u4e8e\u4e4b\u524d\u7684\u56de\u590d\u8fdb\u884c\u540e\u7eed\u56de\u7b54\uff1b3\uff09\u5b9e\u73b0\u590d\u6742\u7684\u5bf9\u8bdd\u903b\u8f91\uff0c\u5982\u5f15\u5bfc\u5f0f\u5bf9\u8bdd\u6216\u72b6\u6001\u8ddf\u8e2a\u3002\u5bf9\u4e8e\u5355\u8f6e\u5bf9\u8bdd\uff0c\u53ef\u4ee5\u53ea\u4f7f\u7528system\u548cuser\u89d2\u8272\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1asystem\u6d88\u606f\u662f\u5fc5\u9700\u7684\u5417\uff1f<\/strong><br>\u7b54\uff1asystem\u6d88\u606f\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u4f46\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528\u3002system\u6d88\u606f\u53ef\u4ee5\u5e2e\u52a9\u8bbe\u5b9a\u6a21\u578b\u7684\u884c\u4e3a\u6a21\u5f0f\u3001\u54cd\u5e94\u98ce\u683c\u548c\u89d2\u8272\u5b9a\u4f4d\u3002\u5982\u679c\u6ca1\u6709system\u6d88\u606f\uff0c\u6a21\u578b\u4f1a\u4f7f\u7528\u9ed8\u8ba4\u7684\u884c\u4e3a\u6a21\u5f0f\u8fdb\u884c\u54cd\u5e94\u3002\u5728\u67d0\u4e9b\u590d\u6742\u5e94\u7528\u4e2d\uff0c\u7cbe\u5fc3\u8bbe\u8ba1\u7684system\u6d88\u606f\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u54cd\u5e94\u8d28\u91cf\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u5982\u4f55\u5904\u7406\u8d85\u957f\u7684\u5bf9\u8bdd\u5386\u53f2\uff1f<\/strong><br>\u7b54\uff1a\u5bf9\u4e8e\u8d85\u957f\u5bf9\u8bdd\u5386\u53f2\uff0c\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u7b56\u7565\uff1a1\uff09\u622a\u65ad\u7b56\u7565\uff1a\u53ea\u4fdd\u7559\u6700\u8fd1\u7684\u5bf9\u8bdd\u8f6e\u6b21\uff1b2\uff09\u6458\u8981\u7b56\u7565\uff1a\u5bf9\u8f83\u65e7\u7684\u5bf9\u8bdd\u5185\u5bb9\u8fdb\u884c\u6458\u8981\u5904\u7406\uff1b3\uff09\u5206\u5757\u7b56\u7565\uff1a\u5c06\u957f\u5bf9\u8bdd\u62c6\u5206\u4e3a\u591a\u4e2a\u72ec\u7acb\u7684\u5bf9\u8bdd\u4f1a\u8bdd\uff1b4\uff09\u4f7f\u7528\u652f\u6301\u66f4\u5927\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6a21\u578b\u3002\u9009\u62e9\u54ea\u79cd\u7b56\u7565\u53d6\u51b3\u4e8e\u4f60\u7684\u5177\u4f53\u5e94\u7528\u9700\u6c42\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1aname\u5b57\u6bb5\u6709\u4ec0\u4e48\u5b9e\u9645\u7528\u9014\uff1f<\/strong><br>\u7b54\uff1aname\u5b57\u6bb5\u4e3b\u8981\u7528\u4e8e\u591a\u7528\u6237\u573a\u666f\uff0c\u53ef\u4ee5\uff1a1\uff09\u533a\u5206\u4e0d\u540c\u7684\u7528\u6237\u8eab\u4efd\uff1b2\uff09\u5728\u7fa4\u804a\u4e2d\u6807\u8bc6\u53d1\u8a00\u8005\uff1b3\uff09\u5b9e\u73b0\u591a\u89d2\u8272\u5bf9\u8bdd\uff08\u5982\u5ba2\u670d\u7cfb\u7edf\u4e2d\u533a\u5206\u5ba2\u6237\u548c\u5ba2\u670d\uff09\uff1b4\uff09\u5e2e\u52a9\u6a21\u578b\u7406\u89e3\u590d\u6742\u7684\u5bf9\u8bdd\u7ed3\u6784\u3002\u5728\u5355\u7528\u6237\u573a\u666f\u4e2d\uff0cname\u5b57\u6bb5\u901a\u5e38\u53ef\u4ee5\u7701\u7565\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u5982\u4f55\u4f18\u5316messages\u6570\u7ec4\u4ee5\u63d0\u9ad8\u54cd\u5e94\u8d28\u91cf\uff1f<\/strong><br>\u7b54\uff1a\u4f18\u5316messages\u6570\u7ec4\u7684\u65b9\u6cd5\u5305\u62ec\uff1a1\uff09\u4fdd\u6301\u6d88\u606f\u7b80\u6d01\u660e\u4e86\uff0c\u907f\u514d\u5197\u4f59\u4fe1\u606f\uff1b2\uff09\u5408\u7406\u7ec4\u7ec7\u6d88\u606f\u987a\u5e8f\uff0c\u786e\u4fdd\u903b\u8f91\u6e05\u6670\uff1b3\uff09\u4f7f\u7528\u660e\u786e\u7684\u89d2\u8272\u5206\u914d\uff1b4\uff09\u5728system\u6d88\u606f\u4e2d\u63d0\u4f9b\u6e05\u6670\u7684\u6307\u4ee4\uff1b5\uff09\u5bf9\u4e8e\u590d\u6742\u4efb\u52a1\uff0c\u53ef\u4ee5\u5728system\u6d88\u606f\u4e2d\u63d0\u4f9b\u793a\u4f8b\u6216\u683c\u5f0f\u8981\u6c42\uff1b6\uff09\u5b9a\u671f\u6d4b\u8bd5\u548c\u8c03\u6574\u6d88\u606f\u7ed3\u6784\u4ee5\u9002\u5e94\u4f60\u7684\u5177\u4f53\u5e94\u7528\u573a\u666f\u3002<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<h2 class=\"wp-block-heading\">OpenAI API\u517c\u5bb9\u683c\u5f0f\u76ee\u5f55<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-format\/\">\u8bf7\u6c42\u683c\u5f0f\u6982\u89c8<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/\" data-type=\"link\" data-id=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/\">\u8bf7\u6c42\u53c2\u6570\u8be6\u89e3<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/model\/\">model<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/messages\/\">messages<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/temperature\/\">temperature<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/max_tokens\/\">max_tokens<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/stream\/\">stream<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/stop\/\" data-type=\"page\" data-id=\"278\">stop<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/top_p\/\">top_p<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/n\/\">n<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/presence_penalty\/\" data-type=\"page\" data-id=\"347\">presence_penalty<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/frequency_penalty\/\" data-type=\"page\" data-id=\"361\">frequency_penalty<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/user\/\">user<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/response_format\/\" data-type=\"page\" data-id=\"331\">response_format<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/tools\/\">tools<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/tool_choice\/\">tool_choice<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/logit_bias\/\">logit_bias<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/logprobs_description\/\">logprobs<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/top_logprobs\/\">top_logprobs<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ai.taichi-maker.com\/index.php\/ai-development-referene\/ai-api-references\/openai-api-compatible-format\/openai-api-request-parameters\/seed\/\">seed<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5e38\u89c1\u7ec4\u548c\u7528\u6cd5<\/li>\n\n\n\n<li>\u9644\u5f55<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5bfc\u822a\u680f\uff1a\u9996\u9875 \/ AI\u5f00\u53d1\u53c2\u8003\u8d44\u6599 \/ OpenAI API \u517c\u5bb9\u683c\u5f0f\u53c2\u8003\u8d44\u6599 \/ \u8bf7\u6c42\u53c2\u6570\u8be6\u89e3 \/ mess [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":193,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-234","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":11,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/234\/revisions"}],"predecessor-version":[{"id":382,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/234\/revisions\/382"}],"up":[{"embeddable":true,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/193"}],"wp:attachment":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/media?parent=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}