{"id":276,"date":"2026-01-09T10:39:21","date_gmt":"2026-01-09T02:39:21","guid":{"rendered":"http:\/\/ai.taichi-maker.com\/?page_id=276"},"modified":"2026-01-12T15:57:19","modified_gmt":"2026-01-12T07:57:19","slug":"stream","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\/stream\/","title":{"rendered":"OpenAI API\u517c\u5bb9\u683c\u5f0f\u8bf7\u6c42\u53c2\u6570 \u2013 stream"},"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\/\">\u8bf7\u6c42\u53c2\u6570\u8be6\u89e3<\/a> \/ stream<\/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>stream<\/code>\u53c2\u6570\u63a7\u5236API\u54cd\u5e94\u7684\u8fd4\u56de\u65b9\u5f0f\u3002\u5b83\u51b3\u5b9a\u4e86\u6a21\u578b\u751f\u6210\u7684\u5185\u5bb9\u662f\u4e00\u6b21\u6027\u8fd4\u56de\u8fd8\u662f\u9010\u6b65\u6d41\u5f0f\u8fd4\u56de\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>false\uff08\u9ed8\u8ba4\uff09<\/strong>\uff1a\u4f20\u7edf\u7684\u975e\u6d41\u5f0f\u54cd\u5e94\u6a21\u5f0f\uff0c\u7b49\u5f85\u6a21\u578b\u751f\u6210\u5b8c\u6574\u56de\u590d\u540e\u4e00\u6b21\u6027\u8fd4\u56de<\/li>\n\n\n\n<li><strong>true<\/strong>\uff1a\u6d41\u5f0f\u54cd\u5e94\u6a21\u5f0f\uff0c\u6a21\u578b\u4f1a\u9010\u6b65\u751f\u6210\u5185\u5bb9\u5e76\u5b9e\u65f6\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef<\/li>\n<\/ul>\n\n\n\n<p>\u6d41\u5f0f\u54cd\u5e94\u6a21\u5f0f\u7684\u8bbe\u8ba1\u7406\u5ff5\u662f<strong>\u63d0\u5347\u7528\u6237\u4f53\u9a8c<\/strong>\uff0c\u901a\u8fc7\u51cf\u5c11\u7528\u6237\u7b49\u5f85\u65f6\u95f4\u6765\u521b\u9020\u66f4\u52a0\u81ea\u7136\u548c\u6d41\u7545\u7684\u4ea4\u4e92\u4f53\u9a8c\u3002\u8fd9\u79cd\u6a21\u5f0f\u7279\u522b\u9002\u7528\u4e8e\u9700\u8981\u751f\u6210\u957f\u6587\u672c\u6216\u590d\u6742\u5185\u5bb9\u7684\u573a\u666f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6d41\u5f0f\u54cd\u5e94\u7684\u5de5\u4f5c\u539f\u7406<\/strong><\/h3>\n\n\n\n<p>\u5f53\u542f\u7528\u6d41\u5f0f\u54cd\u5e94\u65f6\uff0cAPI\u4f1a\u4ee5Server-Sent Events (SSE) \u683c\u5f0f\u8fd4\u56de\u6570\u636e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6a21\u578b\u751f\u6210\u7684\u6bcf\u4e2atoken\uff08\u6216token\u5757\uff09\u90fd\u4f1a\u4f5c\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u4e8b\u4ef6\u53d1\u9001<\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u53ef\u4ee5\u5b9e\u65f6\u63a5\u6536\u548c\u5904\u7406\u8fd9\u4e9b\u4e8b\u4ef6\uff0c\u65e0\u9700\u7b49\u5f85\u5b8c\u6574\u54cd\u5e94<\/li>\n\n\n\n<li>\u6574\u4e2a\u8fc7\u7a0b\u4fdd\u6301HTTP\u8fde\u63a5\uff0c\u76f4\u5230\u751f\u6210\u5b8c\u6210\u6216\u53d1\u751f\u9519\u8bef<\/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\">\u5fc5\u9700\u6027<\/h2>\n\n\n\n<p><code>stream<\/code>\u662fAPI\u8bf7\u6c42\u4e2d\u7684<strong>\u53ef\u9009\u53c2\u6570<\/strong>\u3002\u5982\u679c\u4e0d\u8bbe\u7f6e\u6b64\u53c2\u6570\uff0c\u7cfb\u7edf\u5c06\u4f7f\u7528\u9ed8\u8ba4\u503cfalse\uff0c\u5373\u975e\u6d41\u5f0f\u54cd\u5e94\u6a21\u5f0f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u8bf7\u6c42\u4f53\u4e2d\u7684\u4f7f\u7528<\/h2>\n\n\n\n<p>\u5728\u53d1\u9001API\u8bf7\u6c42\u65f6\uff0c<code>stream<\/code>\u53c2\u6570\u9700\u8981\u5305\u542b\u5728JSON\u8bf7\u6c42\u4f53\u7684\u6700\u5916\u5c42\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u8bf7\u6c42\u4f53\u793a\u4f8b\uff0c\u5c55\u793a\u4e86<code>stream<\/code>\u53c2\u6570\u7684\u4f4d\u7f6e\u548c\u7528\u6cd5\uff1a<\/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);--cbp-line-highlight-color:rgba(201, 218, 248, 0.2);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>{\n  \"model\": \"gpt-5.2\",\n  \"messages\": &#91;\n    {\n      \"role\": \"user\",\n      \"content\": \"\u8bf7\u8be6\u7ec6\u89e3\u91ca\u673a\u5668\u5b66\u4e60\u7684\u6982\u5ff5\u548c\u5e94\u7528\u3002\"\n    }\n  &#93;,\n  \"stream\": true,\n  \"temperature\": 0.7,\n  \"max_tokens\": 1000\n}<\/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\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">model<\/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\">gpt-5.2<\/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\">messages<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><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\">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\u8be6\u7ec6\u89e3\u91ca\u673a\u5668\u5b66\u4e60\u7684\u6982\u5ff5\u548c\u5e94\u7528\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\">&#93;,<\/span><\/span>\n<span class=\"line cbp-line-highlight\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">stream<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">true<\/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\">temperature<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">0.7<\/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\">max_tokens<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1000<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>\"stream\": true<\/code> \u542f\u7528\u4e86\u6d41\u5f0f\u54cd\u5e94\u6a21\u5f0f<\/li>\n\n\n\n<li><code>stream<\/code> \u4e0e <code>model<\/code>\u3001<code>messages<\/code>\u3001<code>temperature<\/code> \u7b49\u53c2\u6570\u5904\u4e8e\u540c\u4e00\u5c42\u7ea7<\/li>\n\n\n\n<li>stream\u503c\u662f\u4e00\u4e2a\u5e03\u5c14\u503c\uff0c\u4e0d\u9700\u8981\u5f15\u53f7\u5305\u88f9<\/li>\n\n\n\n<li>\u542f\u7528\u6d41\u5f0f\u54cd\u5e94\u540e\uff0cAPI\u5c06\u4ee5\u4e8b\u4ef6\u6d41\u7684\u5f62\u5f0f\u8fd4\u56de\u751f\u6210\u7684\u5185\u5bb9<\/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\">\u6d41\u5f0f\u54cd\u5e94\u7684\u6570\u636e\u683c\u5f0f<\/h2>\n\n\n\n<p>\u5f53\u542f\u7528\u6d41\u5f0f\u54cd\u5e94\u65f6\uff0cAPI\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u4e0e\u975e\u6d41\u5f0f\u6a21\u5f0f\u6709\u6240\u4e0d\u540c\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" 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-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>\u5355\u4e2a\u4e8b\u4ef6\u7684\u6570\u636e\u683c\u5f0f\uff1a\n\ndata: {\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1677652288,\"model\":\"gpt-5.2\",\"choices\":&#91;{\"index\":0,\"delta\":{\"content\":\"\u673a\u5668\"},\"finish_reason\":null}&#93;}\n\ndata: {\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1677652288,\"model\":\"gpt-5.2\",\"choices\":&#91;{\"index\":0,\"delta\":{\"content\":\"\u5b66\u4e60\"},\"finish_reason\":null}&#93;}\n\ndata: {\"id\":\"chatcmpl-123\",\"object\":\"chat.completion.chunk\",\"created\":1677652288,\"model\":\"gpt-5.2\",\"choices\":&#91;{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}&#93;}\n\ndata: &#91;DONE&#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: #D8DEE9FF\">\u5355\u4e2a\u4e8b\u4ef6\u7684\u6570\u636e\u683c\u5f0f\uff1a<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">data: <\/span><span style=\"color: #ECEFF4\">{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">chatcmpl-123<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">object<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">chat.completion.chunk<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">created<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #B48EAD\">1677652288<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">model<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">gpt-5.2<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">choices<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:&#91;{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">index<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">delta<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:{<\/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: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u673a\u5668<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">},<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">finish_reason<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #81A1C1\">null<\/span><span style=\"color: #ECEFF4\">}&#93;}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">data: <\/span><span style=\"color: #ECEFF4\">{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">chatcmpl-123<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">object<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">chat.completion.chunk<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">created<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #B48EAD\">1677652288<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">model<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">gpt-5.2<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">choices<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:&#91;{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">index<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">delta<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:{<\/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: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\u5b66\u4e60<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">},<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">finish_reason<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #81A1C1\">null<\/span><span style=\"color: #ECEFF4\">}&#93;}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">data: <\/span><span style=\"color: #ECEFF4\">{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">chatcmpl-123<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">object<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">chat.completion.chunk<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">created<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #B48EAD\">1677652288<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">model<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">gpt-5.2<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">choices<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:&#91;{<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">index<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #B48EAD\">0<\/span><span style=\"color: #ECEFF4\">,<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">delta<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:{},<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #8FBCBB\">finish_reason<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">stop<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">}&#93;}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">data: <\/span><span style=\"color: #ECEFF4\">&#91;<\/span><span style=\"color: #D8DEE9\">DONE<\/span><span style=\"color: #ECEFF4\">&#93;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6d41\u5f0f\u54cd\u5e94\u7684\u5173\u952e\u7279\u5f81\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>delta\u5b57\u6bb5<\/strong>\uff1a\u5305\u542b\u65b0\u751f\u6210\u7684\u5185\u5bb9\u7247\u6bb5\uff0c\u800c\u4e0d\u662f\u5b8c\u6574\u7684\u56de\u590d<\/li>\n\n\n\n<li><strong>\u6e10\u8fdb\u5f0f\u6784\u5efa<\/strong>\uff1a\u5ba2\u6237\u7aef\u9700\u8981\u7d2f\u79ef\u6240\u6709delta\u5185\u5bb9\u6765\u6784\u5efa\u5b8c\u6574\u7684\u56de\u590d<\/li>\n\n\n\n<li><strong>\u7ed3\u675f\u6807\u8bb0<\/strong>\uff1a\u4ee5&#8221;data: [DONE]&#8221;\u6807\u8bb0\u6d41\u5f0f\u54cd\u5e94\u7684\u7ed3\u675f<\/li>\n\n\n\n<li><strong>finish_reason<\/strong>\uff1a\u6307\u793a\u751f\u6210\u7ed3\u675f\u7684\u539f\u56e0\uff08\u5982&#8221;stop&#8221;\u3001&#8221;length&#8221;\u7b49\uff09<\/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\">\u6d41\u5f0f\u54cd\u5e94\u7684\u4f18\u52bf\u5bf9\u6bd4<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7279\u6027<\/th><th>\u6d41\u5f0f\u54cd\u5e94 (stream=true)<\/th><th>\u975e\u6d41\u5f0f\u54cd\u5e94 (stream=false)<\/th><\/tr><\/thead><tbody><tr><td>\u54cd\u5e94\u5ef6\u8fdf<\/td><td>\u4f4e &#8211; \u7528\u6237\u53ef\u4ee5\u7acb\u5373\u770b\u5230\u5f00\u59cb\u7684\u5185\u5bb9<\/td><td>\u9ad8 &#8211; \u9700\u8981\u7b49\u5f85\u5b8c\u6574\u56de\u590d\u751f\u6210<\/td><\/tr><tr><td>\u7528\u6237\u4f53\u9a8c<\/td><td>\u66f4\u597d &#8211; \u5b9e\u65f6\u663e\u793a\u751f\u6210\u8fc7\u7a0b<\/td><td>\u4e00\u822c &#8211; \u4e00\u6b21\u6027\u663e\u793a\u5b8c\u6574\u7ed3\u679c<\/td><\/tr><tr><td>\u5185\u5b58\u4f7f\u7528<\/td><td>\u8f83\u4f4e &#8211; \u9010\u6b65\u5904\u7406\u5c0f\u5757\u6570\u636e<\/td><td>\u8f83\u9ad8 &#8211; \u9700\u8981\u5b58\u50a8\u5b8c\u6574\u54cd\u5e94<\/td><\/tr><tr><td>\u5b9e\u73b0\u590d\u6742\u5ea6<\/td><td>\u8f83\u9ad8 &#8211; \u9700\u8981\u5904\u7406\u4e8b\u4ef6\u6d41<\/td><td>\u7b80\u5355 &#8211; \u76f4\u63a5\u5904\u7406JSON\u54cd\u5e94<\/td><\/tr><tr><td>\u9519\u8bef\u5904\u7406<\/td><td>\u590d\u6742 &#8211; \u9700\u8981\u5904\u7406\u90e8\u5206\u54cd\u5e94<\/td><td>\u7b80\u5355 &#8211; \u6210\u529f\u6216\u5931\u8d25\u660e\u786e<\/td><\/tr><tr><td>\u9002\u7528\u573a\u666f<\/td><td>\u957f\u6587\u672c\u751f\u6210\u3001\u804a\u5929\u5e94\u7528<\/td><td>\u7b80\u5355\u67e5\u8be2\u3001\u6279\u91cf\u5904\u7406<\/td><\/tr><\/tbody><\/table><\/figure>\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>\u6839\u636e\u5e94\u7528\u573a\u666f\u9009\u62e9<\/strong>\uff1a\u5bf9\u4e8e\u804a\u5929\u5e94\u7528\u3001\u5185\u5bb9\u751f\u6210\u5de5\u5177\u7b49\u9700\u8981\u826f\u597d\u7528\u6237\u4f53\u9a8c\u7684\u573a\u666f\uff0c\u5efa\u8bae\u4f7f\u7528\u6d41\u5f0f\u54cd\u5e94\uff1b\u5bf9\u4e8e\u6279\u91cf\u5904\u7406\u3001\u7b80\u5355\u67e5\u8be2\u7b49\u5bf9\u54cd\u5e94\u65f6\u95f4\u8981\u6c42\u4e0d\u9ad8\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u4f7f\u7528\u975e\u6d41\u5f0f\u54cd\u5e94<\/li>\n\n\n\n<li><strong>\u5904\u7406\u7f51\u7edc\u4e2d\u65ad<\/strong>\uff1a\u6d41\u5f0f\u54cd\u5e94\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u53d1\u751f\u7f51\u7edc\u4e2d\u65ad\uff0c\u9700\u8981\u5b9e\u73b0\u91cd\u8fde\u673a\u5236\u548c\u9519\u8bef\u6062\u590d\u7b56\u7565\uff0c\u786e\u4fdd\u7528\u6237\u4f53\u9a8c\u7684\u8fde\u7eed\u6027<\/li>\n\n\n\n<li><strong>\u63a7\u5236\u8f93\u51fa\u901f\u5ea6<\/strong>\uff1a\u6d41\u5f0f\u54cd\u5e94\u53ef\u80fd\u4f1a\u5feb\u901f\u751f\u6210\u5927\u91cf\u5185\u5bb9\uff0c\u8003\u8651\u5728\u5ba2\u6237\u7aef\u5b9e\u73b0\u9002\u5f53\u7684\u663e\u793a\u901f\u5ea6\u63a7\u5236\uff0c\u907f\u514d\u7528\u6237\u754c\u9762\u66f4\u65b0\u8fc7\u5feb<\/li>\n\n\n\n<li><strong>\u5185\u5b58\u7ba1\u7406<\/strong>\uff1a\u867d\u7136\u6d41\u5f0f\u54cd\u5e94\u7684\u5185\u5b58\u4f7f\u7528\u76f8\u5bf9\u8f83\u4f4e\uff0c\u4f46\u4ecd\u9700\u8981\u6ce8\u610f\u7d2f\u79ef\u5927\u91cf\u5185\u5bb9\u65f6\u7684\u5185\u5b58\u7ba1\u7406\uff0c\u7279\u522b\u662f\u5728\u957f\u5bf9\u8bdd\u573a\u666f\u4e2d<\/li>\n\n\n\n<li><strong>\u9519\u8bef\u5904\u7406\u7b56\u7565<\/strong>\uff1a\u6d41\u5f0f\u54cd\u5e94\u7684\u9519\u8bef\u5904\u7406\u66f4\u52a0\u590d\u6742\uff0c\u9700\u8981\u5904\u7406\u90e8\u5206\u54cd\u5e94\u7684\u60c5\u51b5\u3002\u5efa\u8bae\u5b9e\u73b0\u5b8c\u6574\u7684\u9519\u8bef\u6355\u83b7\u548c\u5904\u7406\u673a\u5236<\/li>\n\n\n\n<li><strong>\u8d85\u65f6\u8bbe\u7f6e<\/strong>\uff1a\u6d41\u5f0f\u54cd\u5e94\u53ef\u80fd\u9700\u8981\u66f4\u957f\u7684\u65f6\u95f4\u6765\u5b8c\u6210\uff0c\u7279\u522b\u662f\u5728\u751f\u6210\u957f\u6587\u672c\u65f6\u3002\u8bbe\u7f6e\u5408\u7406\u7684\u8d85\u65f6\u65f6\u95f4\uff0c\u907f\u514d\u8fc7\u65e9\u65ad\u5f00\u8fde\u63a5<\/li>\n\n\n\n<li><strong>\u7528\u6237\u4f53\u9a8c\u4f18\u5316<\/strong>\uff1a\u5728\u754c\u9762\u8bbe\u8ba1\u4e2d\u8003\u8651\u6d41\u5f0f\u54cd\u5e94\u7684\u7279\u6027\uff0c\u5982\u663e\u793a\u6b63\u5728\u8f93\u5165\u7684\u6307\u793a\u5668\u3001\u5e73\u6ed1\u7684\u5185\u5bb9\u66f4\u65b0\u52a8\u753b\u7b49<\/li>\n\n\n\n<li><strong>\u6027\u80fd\u76d1\u63a7<\/strong>\uff1a\u76d1\u63a7\u6d41\u5f0f\u54cd\u5e94\u7684\u6027\u80fd\u6307\u6807\uff0c\u5982\u9996\u4e2atoken\u5230\u8fbe\u65f6\u95f4\u3001\u6574\u4f53\u751f\u6210\u901f\u5ea6\u7b49\uff0c\u7528\u4e8e\u4f18\u5316\u7528\u6237\u4f53\u9a8c<\/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\uff1a\u6d41\u5f0f\u54cd\u5e94\u662f\u5426\u4f1a\u589e\u52a0API\u8c03\u7528\u6210\u672c\uff1f<\/strong><br>\u7b54\uff1a\u6d41\u5f0f\u54cd\u5e94\u672c\u8eab\u4e0d\u4f1a\u589e\u52a0\u989d\u5916\u7684API\u8c03\u7528\u6210\u672c\u3002\u6210\u672c\u4e3b\u8981\u53d6\u51b3\u4e8e\u751f\u6210\u7684token\u6570\u91cf\uff0c\u4e0e\u54cd\u5e94\u65b9\u5f0f\u65e0\u5173\u3002\u4f46\u662f\uff0c\u7531\u4e8e\u6d41\u5f0f\u54cd\u5e94\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7528\u6237\u4f7f\u7528\u66f4\u9891\u7e41\uff0c\u4ece\u800c\u95f4\u63a5\u589e\u52a0\u603b\u6210\u672c\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u6d41\u5f0f\u54cd\u5e94\u7684\u6570\u636e\u683c\u5f0f\u662f\u5426\u7a33\u5b9a\uff1f<\/strong><br>\u7b54\uff1a\u6d41\u5f0f\u54cd\u5e94\u7684\u57fa\u672c\u683c\u5f0f\u662f\u76f8\u5bf9\u7a33\u5b9a\u7684\uff0c\u4f46\u5177\u4f53\u7684\u5b57\u6bb5\u7ed3\u6784\u53ef\u80fd\u4f1a\u968f\u7740API\u7248\u672c\u7684\u66f4\u65b0\u800c\u6709\u6240\u53d8\u5316\u3002\u5efa\u8bae\u5728\u4f7f\u7528\u65f6\u5b9e\u73b0\u5065\u58ee\u7684\u6570\u636e\u89e3\u6790\u903b\u8f91\uff0c\u80fd\u591f\u5904\u7406\u5b57\u6bb5\u7f3a\u5931\u6216\u7ed3\u6784\u53d8\u5316\u7684\u60c5\u51b5\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u5982\u4f55\u5904\u7406\u6d41\u5f0f\u54cd\u5e94\u4e2d\u7684\u7f51\u7edc\u8d85\u65f6\uff1f<\/strong><br>\u7b54\uff1a\u5904\u7406\u6d41\u5f0f\u54cd\u5e94\u7684\u7f51\u7edc\u8d85\u65f6\u9700\u8981\u7279\u6b8a\u7684\u7b56\u7565\uff1a1\uff09\u8bbe\u7f6e\u5408\u7406\u7684\u8fde\u63a5\u8d85\u65f6\u65f6\u95f4\uff08\u5efa\u8bae30-60\u79d2\uff09\uff1b2\uff09\u5b9e\u73b0\u5fc3\u8df3\u673a\u5236\u68c0\u6d4b\u8fde\u63a5\u72b6\u6001\uff1b3\uff09\u5728\u68c0\u6d4b\u5230\u8d85\u65f6\u540e\uff0c\u53ef\u4ee5\u9009\u62e9\u91cd\u8bd5\u6216\u4f18\u96c5\u964d\u7ea7\u5230\u975e\u6d41\u5f0f\u54cd\u5e94\uff1b4\uff09\u5728UI\u5c42\u9762\u63d0\u4f9b\u9002\u5f53\u7684\u53cd\u9988\uff0c\u544a\u77e5\u7528\u6237\u8fde\u63a5\u72b6\u6001\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u6d41\u5f0f\u54cd\u5e94\u662f\u5426\u652f\u6301\u6240\u6709\u6a21\u578b\uff1f<\/strong><br>\u7b54\uff1a\u5927\u591a\u6570\u73b0\u4ee3\u6a21\u578b\u90fd\u652f\u6301\u6d41\u5f0f\u54cd\u5e94\uff0c\u4f46\u67d0\u4e9b\u7279\u5b9a\u6a21\u578b\u6216\u7248\u672c\u53ef\u80fd\u4e0d\u652f\u6301\u3002\u5efa\u8bae\u5728\u4f7f\u7528\u524d\u67e5\u9605\u5177\u4f53\u6a21\u578b\u7684\u6587\u6863\u8bf4\u660e\u3002\u5982\u679c\u53d1\u73b0\u67d0\u4e2a\u6a21\u578b\u4e0d\u652f\u6301\u6d41\u5f0f\u54cd\u5e94\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u56de\u9000\u5230\u975e\u6d41\u5f0f\u6a21\u5f0f\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u5982\u4f55\u4f18\u5316\u6d41\u5f0f\u54cd\u5e94\u7684\u6027\u80fd\uff1f<\/strong><br>\u7b54\uff1a\u4f18\u5316\u6d41\u5f0f\u54cd\u5e94\u6027\u80fd\u7684\u65b9\u6cd5\u5305\u62ec\uff1a1\uff09\u4f7f\u7528\u5408\u9002\u7684max_tokens\u503c\uff0c\u907f\u514d\u751f\u6210\u8fc7\u957f\u5185\u5bb9\uff1b2\uff09\u4f18\u5316\u7f51\u7edc\u8fde\u63a5\uff0c\u4f7f\u7528CDN\u6216\u5c31\u8fd1\u7684\u670d\u52a1\u8282\u70b9\uff1b3\uff09\u5728\u5ba2\u6237\u7aef\u5b9e\u73b0\u9ad8\u6548\u7684\u6570\u636e\u5904\u7406\u548c\u6e32\u67d3\u673a\u5236\uff1b4\uff09\u8003\u8651\u4f7f\u7528WebSocket\u7b49\u66f4\u9ad8\u6548\u7684\u5b9e\u65f6\u901a\u4fe1\u534f\u8bae\uff1b5\uff09\u76d1\u63a7\u548c\u5206\u6790\u6027\u80fd\u74f6\u9888\uff0c\u9488\u5bf9\u6027\u4f18\u5316\u3002<\/li>\n\n\n\n<li><strong>\u95ee\uff1a\u6d41\u5f0f\u54cd\u5e94\u5728\u79fb\u52a8\u7aef\u7684\u8868\u73b0\u5982\u4f55\uff1f<\/strong><br>\u7b54\uff1a\u6d41\u5f0f\u54cd\u5e94\u5728\u79fb\u52a8\u7aef\u7684\u8868\u73b0\u603b\u4f53\u826f\u597d\uff0c\u4f46\u9700\u8981\u6ce8\u610f\uff1a1\uff09\u79fb\u52a8\u7f51\u7edc\u7684\u4e0d\u7a33\u5b9a\u6027\u53ef\u80fd\u5f71\u54cd\u6d41\u5f0f\u54cd\u5e94\u7684\u8fde\u7eed\u6027\uff1b2\uff09\u9700\u8981\u8003\u8651\u79fb\u52a8\u8bbe\u5907\u7684\u7535\u6c60\u6d88\u8017\uff1b3\uff09\u5728\u5f31\u7f51\u73af\u5883\u4e0b\u53ef\u80fd\u9700\u8981\u5b9e\u73b0\u66f4\u667a\u80fd\u7684\u91cd\u8bd5\u548c\u6062\u590d\u673a\u5236\uff1b4\uff09\u5efa\u8bae\u5b9e\u73b0\u81ea\u9002\u5e94\u7684\u6d41\u5f0f\u7b56\u7565\uff0c\u6839\u636e\u7f51\u7edc\u8d28\u91cf\u52a8\u6001\u8c03\u6574\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 \/ stre [&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-276","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/276","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=276"}],"version-history":[{"count":9,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/276\/revisions"}],"predecessor-version":[{"id":392,"href":"http:\/\/ai.taichi-maker.com\/index.php\/wp-json\/wp\/v2\/pages\/276\/revisions\/392"}],"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=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}