{"id":1250,"date":"2023-02-25T08:23:52","date_gmt":"2023-02-25T00:23:52","guid":{"rendered":"https:\/\/www.aqwu.net\/wp\/?p=1250"},"modified":"2023-02-25T16:22:52","modified_gmt":"2023-02-25T08:22:52","slug":"openai%ef%bc%9a1-%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=1250","title":{"rendered":"OpenAI API \u5f00\u59cb\u4f7f\u7528\uff1a1.\u4ecb\u7ecd"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/overview\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/overview\">\u6982\u8ff0<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OpenAI API \u51e0\u4e4e\u53ef\u4ee5\u5e94\u7528\u4e8e\u4efb\u4f55\u6d89\u53ca\u7406\u89e3\u6216\u751f\u6210\u81ea\u7136\u8bed\u8a00\u6216\u4ee3\u7801\u7684\u4efb\u52a1\u3002\u6211\u4eec\u63d0\u4f9b\u4e00\u7cfb\u5217\u5177\u6709\u4e0d\u540c\u529f\u7387\u6c34\u5e73\u7684<a href=\"https:\/\/platform.openai.com\/docs\/models\">\u578b\u53f7<\/a>\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u4efb\u52a1\uff0c\u5e76\u80fd\u591f<a href=\"https:\/\/platform.openai.com\/docs\/guides\/fine-tuning\">\u5fae\u8c03<\/a>\u60a8\u81ea\u5df1\u7684\u5b9a\u5236\u6a21\u578b\u3002\u8fd9\u4e9b\u6a21\u578b\u53ef\u7528\u4e8e\u4ece\u5185\u5bb9\u751f\u6210\u5230\u8bed\u4e49\u641c\u7d22\u548c\u5206\u7c7b\u7684\u6240\u6709\u5185\u5bb9\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/platform.openai.com\/docs\/introduction\/overview\">Introduction &#8211; OpenAI API<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/key-concepts\">\u5173\u952e\u6982\u5ff5<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5efa\u8bae\u5b8c\u6210\u5feb\u901f\u5165\u95e8\u6559\u7a0b\uff0c\u901a\u8fc7\u52a8\u624b\u7684\u4ea4\u4e92\u5f0f\u793a\u4f8b\u719f\u6089\u5173\u952e\u6982\u5ff5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.aqwu.net\/wp\/?p=1255\">\u5feb\u901f\u5165\u95e8\u6559\u7a0b<\/a>  \u901a\u8fc7\u6784\u5efa\u5feb\u901f\u793a\u4f8b\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u5b66\u4e60<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/prompts-and-completions\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/prompts-and-completions\">\u63d0\u793a\u548c\u5b8c\u6210<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/completions\">\u5b8c\u6210<\/a>\u7aef\u70b9\u4f4d\u4e8e API \u7684\u4e2d\u5fc3\u3002\u5b83\u4e3a\u6211\u4eec\u7684\u6a21\u578b\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u754c\u9762\uff0c\u975e\u5e38\u7075\u6d3b\u548c\u5f3a\u5927\u3002\u60a8\u8f93\u5165\u4e00\u4e9b\u6587\u672c\u4f5c\u4e3a<strong>\u63d0\u793a<\/strong>\uff0c\u6a21\u578b\u5c06\u751f\u6210\u4e00\u4e2a\u6587\u672c<strong>\u8865\u5168<\/strong>\uff0c\u5c1d\u8bd5\u5339\u914d\u60a8\u4e3a\u5176\u63d0\u4f9b\u7684\u4efb\u4f55\u4e0a\u4e0b\u6587\u6216\u6a21\u5f0f\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u5411 API \u63d0\u4f9b\u63d0\u793a\u201c\u4e3a\u51b0\u6dc7\u6dcb\u5e97\u7f16\u5199\u6807\u8bed\u201d\uff0c\u5b83\u5c06\u8fd4\u56de\u7c7b\u4f3c\u201c\u6211\u4eec\u6bcf\u52fa\u90fd\u63d0\u4f9b\u5fae\u7b11\uff01\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/platform.openai.com\/docs\/guides\/completion\/prompt-design\">\u8bbe\u8ba1\u63d0\u793a<\/a>\u672c\u8d28\u4e0a\u662f\u201c\u7f16\u7a0b\u201d\u6a21\u578b\u7684\u65b9\u5f0f\uff0c\u901a\u5e38\u662f\u901a\u8fc7\u63d0\u4f9b\u4e00\u4e9b\u8bf4\u660e\u6216\u4e00\u4e9b\u793a\u4f8b\u3002\u8fd9\u4e0e\u5927\u591a\u6570\u5176\u4ed6 NLP \u670d\u52a1\u4e0d\u540c\uff0c\u540e\u8005\u662f\u4e3a\u5355\u4e2a\u4efb\u52a1\u8bbe\u8ba1\u7684\uff0c\u4f8b\u5982\u60c5\u7eea\u5206\u7c7b\u6216\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u3002\u76f8\u53cd\uff0c\u5b8c\u6210\u7aef\u70b9\u51e0\u4e4e\u53ef\u7528\u4e8e\u4efb\u4f55\u4efb\u52a1\uff0c\u5305\u62ec\u5185\u5bb9\u6216\u4ee3\u7801\u751f\u6210\u3001\u6458\u8981\u3001\u6269\u5c55\u3001\u5bf9\u8bdd\u3001\u521b\u610f\u5199\u4f5c\u3001\u98ce\u683c\u8fc1\u79fb\u7b49\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/tokens\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/tokens\">\u4ee4 \u724c<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u7684\u6a21\u578b\u901a\u8fc7\u5c06\u6587\u672c\u5206\u89e3\u4e3a\u6807\u8bb0\u6765\u7406\u89e3\u548c\u5904\u7406\u6587\u672c\u3002\u6807\u8bb0\u53ef\u4ee5\u662f\u5355\u8bcd\uff0c\u4e5f\u53ef\u4ee5\u53ea\u662f\u5b57\u7b26\u5757\u3002\u4f8b\u5982\uff0c\u5355\u8bcd\u201chamburger\u201d\u88ab\u5206\u89e3\u4e3a\u6807\u8bb0\u201cham\u201d\uff0c\u201cbur\u201d\u548c\u201cger\u201d\uff0c\u800c\u50cf\u201cpear\u201d\u8fd9\u6837\u7684\u7b80\u77ed\u800c\u5e38\u89c1\u7684\u5355\u8bcd\u662f\u5355\u4e2a\u4ee4\u724c\u3002\u8bb8\u591a\u6807\u8bb0\u4ee5\u7a7a\u683c\u5f00\u5934\uff0c\u4f8b\u5982\u201chello\u201d\u548c\u201cbye\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed9\u5b9a API \u8bf7\u6c42\u4e2d\u5904\u7406\u7684\u4ee4\u724c\u6570\u91cf\u53d6\u51b3\u4e8e\u8f93\u5165\u548c\u8f93\u51fa\u7684\u957f\u5ea6\u3002\u6839\u636e\u7c97\u7565\u7684\u7ecf\u9a8c\u6cd5\u5219\uff0c\u5bf9\u4e8e\u82f1\u6587\u6587\u672c\uff0c1 \u4e2a\u6807\u8bb0\u5927\u7ea6\u662f 4 \u4e2a\u5b57\u7b26\u6216 0.75 \u4e2a\u5355\u8bcd\u3002\u8981\u8bb0\u4f4f\u7684\u4e00\u4e2a\u9650\u5236\u662f\uff0c\u6587\u672c\u63d0\u793a\u548c\u751f\u6210\u7684\u5b8c\u6210\u7ec4\u5408\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\u67e5\u770b\u6211\u4eec\u7684\u5206\u8bcd\u5668\u5de5\u5177\uff0c\u8be6\u7ec6\u4e86\u89e3\u6587\u672c\u5982\u4f55\u8f6c\u6362\u4e3a<a href=\"https:\/\/platform.openai.com\/tokenizer\">\u5206\u8bcd<\/a>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/models\">\u6a21\u578b<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5 API \u7531\u4e00\u7ec4\u5177\u6709\u4e0d\u540c\u529f\u80fd\u548c\u4ef7\u4f4d\u7684\u6a21\u578b\u63d0\u4f9b\u652f\u6301\u3002\u6211\u4eec\u7684\u57fa\u672c GPT-3 \u6a21\u578b\u79f0\u4e3aDavinci(\u8fbe\u82ac\u5947)\u3001Curie(\u5c45\u91cc)\u3001Babbage(\u5df4\u8d1d\u5947)\u548cAda(\u827e\u8fbe)\u3002\u6211\u4eec\u7684 Codex \u7cfb\u5217\u662f GPT-3 \u7684\u540e\u4ee3\uff0c\u7ecf\u8fc7\u81ea\u7136\u8bed\u8a00\u548c\u4ee3\u7801\u8bad\u7ec3\u3002\u8981\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u8bbf\u95ee\u6211\u4eec\u7684<a href=\"https:\/\/platform.openai.com\/docs\/models\">\u6a21\u578b\u6587\u6863<\/a>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/next-steps\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/platform.openai.com\/docs\/introduction\/next-steps\">\u540e\u7eed\u6b65\u9aa4<\/a><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u5f00\u59cb\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u8bf7\u8bb0\u4f4f\u6211\u4eec\u7684<a href=\"https:\/\/platform.openai.com\/docs\/usage-policies\">\u4f7f\u7528\u7b56\u7565<\/a>\u3002<\/li>\n\n\n\n<li>\u63a2\u7d22\u6211\u4eec\u7684<a href=\"https:\/\/platform.openai.com\/examples\">\u793a\u4f8b\u5e93<\/a>\u4ee5\u83b7\u53d6\u7075\u611f\u3002<\/li>\n\n\n\n<li>\u8df3\u8f6c\u5230\u6211\u4eec\u7684\u6307\u5357\u4e4b\u4e00\uff0c\u5f00\u59cb\u6784\u5efa\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 OpenAI API \u51e0\u4e4e\u53ef\u4ee5\u5e94\u7528\u4e8e\u4efb\u4f55\u6d89\u53ca\u7406\u89e3\u6216\u751f\u6210\u81ea\u7136\u8bed\u8a00\u6216\u4ee3\u7801\u7684\u4efb\u52a1\u3002\u6211\u4eec\u63d0\u4f9b\u4e00\u7cfb\u5217\u5177\u6709\u4e0d\u540c\u529f\u7387\u6c34 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[289,312,43],"tags":[242,315],"class_list":["post-1250","post","type-post","status-publish","format-standard","hentry","category-gpt","category-openai","category-infoarticle","tag-chatgpt","tag-openai-ai"],"views":1135,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1250"}],"version-history":[{"count":7,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1250\/revisions"}],"predecessor-version":[{"id":1309,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1250\/revisions\/1309"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}