{"id":1749,"date":"2022-11-04T17:02:02","date_gmt":"2022-11-04T09:02:02","guid":{"rendered":"https:\/\/qishiya.com\/?p=1749"},"modified":"2022-11-04T17:02:03","modified_gmt":"2022-11-04T09:02:03","slug":"openai-%e7%9a%84-token-%e4%b8%8e-temperature","status":"publish","type":"post","link":"https:\/\/qishiya.com\/?p=1749","title":{"rendered":"<strong>openai \u7684 token \u4e0e temperature<\/strong>"},"content":{"rendered":"\n<p>openai \u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5de5\u5177\uff0c\u7528\u6765\u5199\u5546\u54c1\u6807\u9898\u3001\u5546\u54c1\u4ecb\u7ecd\u3001\u5e7f\u544a\u6587\u6848\u3001\u63a8\u5e7f\u90ae\u4ef6\uff0c\u786e\u5b9e\u5f88\u65b9\u4fbf\uff0c\u5df2\u7ecf\u662f\u5de5\u4f5c\u4e4b\u4e2d\u4e0d\u53ef\u7f3a\u5c11\u7684\u4e00\u4e2a\u5de5\u5177\uff0c\u73b0\u5728\u7684\u7ade\u4e89\u5c31\u662f\u770b\u8c01\u7684\u5de5\u5177\u66f4\u52a0\u5148\u8fdb\u3002<\/p>\n\n\n\n<p>\u5728\u548c\u540c\u4e8b\u4ea4\u6d41\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u5927\u5bb6\u5bf9 openai \u8fd9\u91cc\u9762\u4e24\u4e2a\u6700\u91cd\u8981\u7684\u6982\u5ff5(token, temperatuere)\u7406\u89e3\u90fd\u4e0d\u4e00\u6837\uff0c\u67e5\u4e86\u4e00\u4e0b\u624b\u518c\uff0c\u611f\u89c9\u8bf4\u7684\u5f88\u6e05\u6670\u7684\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_61 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ff6200;color:#ff6200\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ff6200;color:#ff6200\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/qishiya.com\/?p=1749\/#token\" title=\"token\">token<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/qishiya.com\/?p=1749\/#%E6%B3%A8%E6%84%8F\" title=\"\u6ce8\u610f\">\u6ce8\u610f<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/qishiya.com\/?p=1749\/#temperature\" title=\"temperature\">temperature<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"token\"><\/span>token<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>openai \u7684 token \u4e0e \u533a\u5757\u94fe\u4e0a\u7684 token \u5b8c\u5168\u4e0d\u4e00\u6837\uff0c\u4ed6\u5e94\u8be5\u662f\u8bed\u4e49\u4e0d\u53ef\u518d\u5206\u7684\u6700\u5c0f\u5355\u4f4d\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I have an orange cat named Butterscotch.<\/p>\n<\/blockquote>\n\n\n\n<p><code>I<\/code> \u3001<code>have<\/code>\u3001 <code>an<\/code>\u3001<code>orange<\/code>\u3001<code>cat<\/code>\u3001<code>named<\/code> \u6bcf\u4e00\u4e2a\u90fd\u662f\u4e00\u4e2a token\uff0c\u8fd9\u91cc\u6709 <code>6<\/code> \u4e2a token\u3002<br><code>Butterscotch<\/code> \u5c31\u4f1a\u62c6\u5206\u6210 <code>But<\/code>\u3001<code>ters<\/code> \u3001<code>cot<\/code>\u3001<code>ch<\/code> \u56db\u4e2a token\u3002<\/p>\n\n\n\n<p><code>.<\/code> \u6807\u70b9\u7b26\u53f7\u4e5f\u662f\u4e00\u4e2a token\u3002<\/p>\n\n\n\n<p>\u4e5f\u5c31\u662f\u590d\u6742\u7684\u4f1a\u62c6\u5206\uff0c\u7b80\u5355\u7684\u5c31\u4e0d\u4f1a\u518d\u62c6\u5206\u4e86\uff0c\u6587\u6863\u91cc\u9762\u4e5f\u63d0\u5230\u4e86\uff0c\u5f88\u591a token \u4ee5<code>\u7a7a\u683c<\/code>\u5f00\u59cb\uff0c\u5982<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u201c hello\u201d and \u201c bye\u201d<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/tutu-1252436247.cos.ap-beijing.myqcloud.com\/2022\/11\/20221104uCFtPs.png\" alt=\"openai token \u8bf4\u660e\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/beta.openai.com\/tokenizer\">openai token \u63d0\u53d6<\/a><\/p>\n\n\n\n<!--more-->\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B3%A8%E6%84%8F\"><\/span>\u6ce8\u610f<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u5bf9\u4e8e\u82f1\u6587\u6587\u672c\uff0c1 \u4e2atoken\u5927\u7ea6\u662f 4 \u4e2a\u5b57\u7b26\u6216 0.75 \u4e2a\u5355\u8bcd\u3002\u8981\u8bb0\u4f4f\u7684\u4e00\u4e2a\u9650\u5236\u662f\uff0c\u60a8\u7684\u8f93\u5165\u548c\u751f\u6210\u7684\u7ed3\u679c\u4e0d\u5f97\u8d85\u8fc7\u6a21\u578b\u7684\u6700\u5927\u4e0a\u4e0b\u6587\u957f\u5ea6\uff08\u5bf9\u4e8e\u5927\u591a\u6570\u6a21\u578b\uff0c\u8fd9\u662f 2048 \u4e2a\u6807\u8bb0\uff0c\u6216\u5927\u7ea6 1500 \u4e2a\u5355\u8bcd\uff09\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"temperature\"><\/span>temperature<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>temperature \u5176\u5b9e\u5c31\u662f\u51c6\u786e\u6027\u7684\u6982\u7387\uff0c\u5f53\u8bbe\u7f6e\u4e3a 0 \u65f6\uff0c\u53ea\u4f1a\u8fd4\u56de\u6700\u7cbe\u51c6\u7684\u90a3\u4e2a\u5019\u9009\u5bf9\u8c61\uff0c\u5982\u679c\u8bbe\u7f6e\u6210 1\uff0c\u8fd4\u56de\u7684\u5bf9\u8c61\u5c31\u4f1a\u4e0d\u8ffd\u6c42\u8fd9\u4e48\u51c6\u786e\uff0c\u800c\u662f\u5404\u79cd\u53ef\u80fd\u90fd\u6709\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/tutu-1252436247.cos.ap-beijing.myqcloud.com\/2022\/11\/20221104AELYFm.png\" alt=\"openai temperature \u7406\u89e3\"\/><\/figure>\n\n\n\n<p>\u4e0a\u9762\u628a temperature \u8bbe\u7f6e\u6210<code>0<\/code>\uff0c\u6bcf\u6b21\u90fd\u8fd4\u56de\u76f8\u5bf9\u786e\u5b9a\u7684 animal\uff0c\u5982\u679c\u8bbe\u7f6e\u6210 1\uff0c\u8fd4\u56de\u7684\u53ef\u80fd\u6027\u5c31\u8981\u591a\u5f88\u591a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>openai \u662f\u4e00\u4e2a\u5f88\u597d\u7684\u5de5\u5177\uff0c\u7528\u6765\u5199\u5546\u54c1\u6807\u9898\u3001\u5546\u54c1\u4ecb\u7ecd\u3001\u5e7f\u544a\u6587\u6848\u3001\u63a8\u5e7f\u90ae\u4ef6\uff0c\u786e\u5b9e\u5f88\u65b9\u4fbf\uff0c\u5df2\u7ecf\u662f\u5de5\u4f5c\u4e4b\u4e2d\u4e0d\u53ef\u7f3a\u5c11\u7684\u4e00\u4e2a\u5de5\u5177\uff0c\u73b0\u5728\u7684\u7ade\u4e89\u5c31\u662f\u770b\u8c01\u7684\u5de5\u5177\u66f4\u52a0\u5148\u8fdb\u3002 \u5728\u548c\u540c\u4e8b\u4ea4\u6d41\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u5927\u5bb6\u5bf9 openai \u8fd9\u91cc\u9762\u4e24\u4e2a\u6700\u91cd\u8981\u7684\u6982\u5ff5(token &#8230; <a title=\"openai \u7684 token \u4e0e temperature\" class=\"read-more\" href=\"https:\/\/qishiya.com\/?p=1749\" aria-label=\"\u66f4\u591a openai \u7684 token \u4e0e temperature\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[372],"tags":[342,525,524],"class_list":["post-1749","post","type-post","status-publish","format-standard","hentry","category-372","tag-openai","tag-temperatuer","tag-token"],"_links":{"self":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1749"}],"version-history":[{"count":1,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1749\/revisions"}],"predecessor-version":[{"id":1750,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1749\/revisions\/1750"}],"wp:attachment":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}