{"id":1853,"date":"2023-02-07T13:04:46","date_gmt":"2023-02-07T05:04:46","guid":{"rendered":"https:\/\/pjq.me\/?p=1853"},"modified":"2023-02-07T13:15:15","modified_gmt":"2023-02-07T05:15:15","slug":"%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8c%e6%9c%ac%e5%9c%b0%e7%9a%84chatgpt","status":"publish","type":"post","link":"https:\/\/pjq.me\/?p=1853","title":{"rendered":"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT"},"content":{"rendered":"\n<p>ChatGPT\u56e0\u4e3a\u4e00\u76f4\u5728\u8c03\u7528\u8fdc\u7aefAPI\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u8d85\u65f6\u6216\u8005\u6302\u6389\u7684\u60c5\u51b5\uff0c\u672c\u5730\u8dd1\u4e00\u4e2aChatGPT\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9(\u8fd9\u91cc\u6709\u8bef\u89e3\uff0c\u5176\u5b9e\u8fd8\u662f\u8c03\u7528\u8fdc\u7aef\u7684<code>text-chat-davinci-002-20230126<\/code>\uff0c\u53ea\u662f\u4e0d\u7528\u4ed8\u94b1)\u3002<\/p>\n\n\n\n<p>\u5728Twitter Timeline\u4e0a\u770b\u5230\u8fd9\u4e2arepo, \u636e\u8bf4\u662f\u7b2c\u4e00\u4e2a\u53d1\u73b0\u5b98\u65b9\u6a21\u578b\u6cc4\u9732\u7684<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/github.com\/waylaidwanderer\/node-chatgpt-api\">https:\/\/github.com\/waylaidwanderer\/node-chatgpt-api<\/a><\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>This is an implementation of&nbsp;<a href=\"https:\/\/chat.openai.com\/chat\">ChatGPT<\/a>&nbsp;using the official ChatGPT raw model,&nbsp;<code>text-chat-davinci-002<\/code>. This model name&nbsp;<code>text-chat-davinci-002-20230126<\/code>&nbsp;was briefly leaked while I was inspecting the network requests made by the official ChatGPT website, and I discovered that it works with the&nbsp;<a href=\"https:\/\/beta.openai.com\/docs\/api-reference\/completions\">OpenAI API<\/a>.&nbsp;<strong>Usage of this model currently does not cost any credits.<\/strong><\/p>\n\n\n\n<p>As far as I&#8217;m aware, I was the first one who discovered this, and usage of the model has since been implemented in libraries like&nbsp;<a href=\"https:\/\/github.com\/acheong08\/ChatGPT\">acheong08\/ChatGPT<\/a>.<\/p>\n\n\n\n<p>The previous version of this library that used&nbsp;<a href=\"https:\/\/github.com\/transitive-bullshit\/chatgpt-api\">transitive-bullshit\/chatgpt-api<\/a>&nbsp;is still available on&nbsp;<a href=\"https:\/\/github.com\/waylaidwanderer\/node-chatgpt-api\/tree\/archive\/old-version\">the&nbsp;<code>archive\/old-version<\/code>&nbsp;branch<\/a>.<\/p>\n\n\n\n<p>By itself, the model does not have any conversational support, so this library uses a cache to store conversations and pass them to the model as context. This allows you to have persistent conversations with ChatGPT in a nearly identical way to the official website.<\/p>\n<\/blockquote>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/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: #999;color:#999\" 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: #999;color:#999\" 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:\/\/pjq.me\/?p=1853\/#How_to_run\" >How to run<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/pjq.me\/?p=1853\/#chatgpt-cli\" >chatgpt-cli<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/pjq.me\/?p=1853\/#chatgpt-api\" >chatgpt-api<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_run\"><\/span>How to run<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5176\u5b9e\u8fd0\u884c\u5f88\u7b80\u5355<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install node\nmkdir chatgpt\ncd chatgpt\nnpm i -g @waylaidwanderer\/chatgpt-api\nvim settings.js<\/code><\/pre>\n\n\n\n<p>\u66f4\u65b0settings.js\u91cc\u9762API Key<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>module.exports = {\n  \/\/ Your OpenAI API key\n  openaiApiKey: process.env.OPENAI_API_KEY || 'sk-qDrS3x7YrOV5tl57PFM1T3BlbkFJxxxxxxxxxxx',\n  chatGptClient: {\n    \/\/ (Optional) Parameters as described in https:\/\/platform.openai.com\/docs\/api-reference\/completions\n    modelOptions: {\n      \/\/ The model is set to text-chat-davinci-002-20221122 by default, but you can override\n      \/\/ it and any other parameters here\n      model: 'text-chat-davinci-002-20221122',\n    },\n    \/\/ (Optional) Set custom instructions instead of \"You are ChatGPT...\".\n    \/\/ promptPrefix: 'You are Bob, a cowboy in Western times...',\n    \/\/ (Optional) Set a custom name for the user\n    \/\/ userLabel: 'User',\n    \/\/ (Optional) Set a custom name for ChatGPT\n    \/\/ chatGptLabel: 'ChatGPT',\n    \/\/ (Optional) Set to true to enable `console.debug()` logging\n    debug: false,\n  },\n  \/\/ Options for the Keyv cache, see https:\/\/www.npmjs.com\/package\/keyv\n  \/\/ This is used for storing conversations, and supports additional drivers (conversations are stored in memory by default)\n  cacheOptions: {},\n  \/\/ Options for the API server\n  apiOptions: {\n    port: process.env.API_PORT || 3000,\n    host: process.env.API_HOST || 'localhost',\n    \/\/ (Optional) Set to true to enable `console.debug()` logging\n    debug: false,\n  },\n  \/\/ If set, ChatGPTClient will use `keyv-file` to store conversations to this JSON file instead of in memory.\n  \/\/ However, `cacheOptions.store` will override this if set\n  storageFilePath: process.env.STORAGE_FILE_PATH || '.\/cache.json',\n};<\/code><\/pre>\n\n\n\n<p>\u6240\u4ee5\u76ee\u5f55\u7ed3\u6784\u4e3a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\uf8ff ~\/workspace\/chatgpt\/ tree -L 1\n.\n\u251c\u2500\u2500 cache.json\n\u251c\u2500\u2500 node_modules\n\u251c\u2500\u2500 package-lock.json\n\u251c\u2500\u2500 package.json\n\u2514\u2500\u2500 settings.js\n\n1 directory, 4 files<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u65b9\u5f0f\u6709\u4e24\u79cd<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u76f4\u63a5\u8fd0\u884c\u672c\u5730chatgpt-cli \u5ba2\u6237\u7aef<\/li>\n\n\n\n<li>\u8fd0\u884cchatgpt-api\u670d\u52a1\u5668\u7aef\uff0c\u7136\u540e\u901a\u8fc7API\u65b9\u5f0f\u8c03\u7528<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"chatgpt-cli\"><\/span>chatgpt-cli<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8fd0\u884ccli\u5ba2\u6237\u7aef\u6bd4\u8f83\u65b9\u4fbf\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fdb\u884c\u4ea4\u4e92\uff0c\u5e76\u4e14\u6709\u672c\u5730session\u7f13\u5b58<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> chatgpt-cli<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png\" alt=\"\" class=\"wp-image-1854\" width=\"890\" height=\"480\" srcset=\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png 1024w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-300x162.png 300w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-768x415.png 768w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1536x830.png 1536w, https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1.png 1950w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"chatgpt-api\"><\/span>chatgpt-api<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>chatgpt-api<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u670d\u52a1\u5668\u7aef\uff0c\u901a\u8fc7API POST\u65b9\u5f0f\u8c03\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -H \"Content-Type: application\/json\" -X POST -d '{\"message\": \"Hello, Who build you and who are you?\", \"conversationId\": \"your-conversation-id (optional)\", \"parentMessageId\": \"your-parent-message-id (optional)\"}' http:\/\/localhost:3000\/conversation<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"message\": \"Hello, how are you today?\",\n    \"conversationId\": \"your-conversation-id (optional)\",\n    \"parentMessageId\": \"your-parent-message-id (optional)\"\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"response\":\"Hello! I was built by OpenAI, an artificial intelligence research laboratory consisting of the for-profit technology company OpenAI LP and its parent company, the non-profit OpenAI Inc. I am an AI language model based on the transformer architecture, trained on a diverse range of text data from the internet. My goal is to generate human-like text responses to prompts given to me by users.\",\"conversationId\":\"your-conversation-id (optional)\",\"messageId\":\"135c66ed-2ae1-4672-96aa-99fce77826a5\"}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ChatGPT\u56e0\u4e3a\u4e00\u76f4\u5728\u8c03\u7528\u8fdc\u7aefAPI\uff0c\u7ecf\u5e38\u4f1a\u51fa\u73b0\u8d85\u65f6\u6216\u8005\u6302\u6389\u7684\u60c5\u51b5\uff0c\u672c\u5730\u8dd1\u4e00\u4e2aChatGPT\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9(\u8fd9\u91cc\u6709\u8bef\u89e3\uff0c\u5176\u5b9e\u8fd8\u662f\u8c03\u7528\u8fdc\u7aef\u7684text-chat-davinci-002-20230126\uff0c\u53ea\u662f\u4e0d\u7528\u4ed8\u94b1)\u3002 \u5728Twitter Timeline\u4e0a\u770b\u5230\u8fd9\u4e2arepo, \u636e\u8bf4\u662f\u7b2c\u4e00\u4e2a\u53d1\u73b0\u5b98\u65b9\u6a21\u578b\u6cc4\u9732\u7684 This is an implementation of&nbsp;ChatGPT&nbsp;using the official ChatGPT raw model,&nbsp;text-chat-davinci-002. This model name&nbsp;text-chat-davinci-002-20230126&nbsp;was briefly leaked while I was inspecting the network requests made by the official ChatGPT website, and I discovered that it works with the&nbsp;OpenAI<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169],"tags":[202,200,213],"class_list":["post-1853","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ai","tag-chatgpt","tag-openai"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT - Jianqing&#039;s Blog<\/title>\n<meta name=\"description\" content=\"Run you ChatGPT on your local machine\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pjq.me\/?p=1853\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT - Jianqing&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Run you ChatGPT on your local machine\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pjq.me\/?p=1853\" \/>\n<meta property=\"og:site_name\" content=\"Jianqing&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-07T05:04:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-07T05:15:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png\" \/>\n<meta name=\"author\" content=\"pengjianqing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pengjianqing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pjq.me\/?p=1853#article\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/?p=1853\"},\"author\":{\"name\":\"pengjianqing\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"headline\":\"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT\",\"datePublished\":\"2023-02-07T05:04:46+00:00\",\"dateModified\":\"2023-02-07T05:15:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=1853\"},\"wordCount\":181,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"image\":{\"@id\":\"https:\/\/pjq.me\/?p=1853#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png\",\"keywords\":[\"AI\",\"ChatGPT\",\"OpenAI\"],\"articleSection\":[\"Tech\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/pjq.me\/?p=1853#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pjq.me\/?p=1853\",\"url\":\"https:\/\/pjq.me\/?p=1853\",\"name\":\"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT - Jianqing&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=1853#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pjq.me\/?p=1853#primaryimage\"},\"thumbnailUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png\",\"datePublished\":\"2023-02-07T05:04:46+00:00\",\"dateModified\":\"2023-02-07T05:15:15+00:00\",\"description\":\"Run you ChatGPT on your local machine\",\"breadcrumb\":{\"@id\":\"https:\/\/pjq.me\/?p=1853#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pjq.me\/?p=1853\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/?p=1853#primaryimage\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1.png\",\"width\":1950,\"height\":1054},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pjq.me\/?p=1853#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pjq.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pjq.me\/#website\",\"url\":\"https:\/\/pjq.me\/\",\"name\":\"Jianqing&#039;s Blog\",\"description\":\"Thoughts and Future\",\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pjq.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\",\"name\":\"pengjianqing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"width\":460,\"height\":752,\"caption\":\"pengjianqing\"},\"logo\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/pjq.me\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT - Jianqing&#039;s Blog","description":"Run you ChatGPT on your local machine","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pjq.me\/?p=1853","og_locale":"en_US","og_type":"article","og_title":"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT - Jianqing&#039;s Blog","og_description":"Run you ChatGPT on your local machine","og_url":"https:\/\/pjq.me\/?p=1853","og_site_name":"Jianqing&#039;s Blog","article_published_time":"2023-02-07T05:04:46+00:00","article_modified_time":"2023-02-07T05:15:15+00:00","og_image":[{"url":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png","type":"","width":"","height":""}],"author":"pengjianqing","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pengjianqing","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pjq.me\/?p=1853#article","isPartOf":{"@id":"https:\/\/pjq.me\/?p=1853"},"author":{"name":"pengjianqing","@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"headline":"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT","datePublished":"2023-02-07T05:04:46+00:00","dateModified":"2023-02-07T05:15:15+00:00","mainEntityOfPage":{"@id":"https:\/\/pjq.me\/?p=1853"},"wordCount":181,"commentCount":0,"publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"image":{"@id":"https:\/\/pjq.me\/?p=1853#primaryimage"},"thumbnailUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png","keywords":["AI","ChatGPT","OpenAI"],"articleSection":["Tech"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pjq.me\/?p=1853#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pjq.me\/?p=1853","url":"https:\/\/pjq.me\/?p=1853","name":"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT - Jianqing&#039;s Blog","isPartOf":{"@id":"https:\/\/pjq.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pjq.me\/?p=1853#primaryimage"},"image":{"@id":"https:\/\/pjq.me\/?p=1853#primaryimage"},"thumbnailUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1-1024x553.png","datePublished":"2023-02-07T05:04:46+00:00","dateModified":"2023-02-07T05:15:15+00:00","description":"Run you ChatGPT on your local machine","breadcrumb":{"@id":"https:\/\/pjq.me\/?p=1853#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pjq.me\/?p=1853"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/?p=1853#primaryimage","url":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2023\/02\/image-1.png","width":1950,"height":1054},{"@type":"BreadcrumbList","@id":"https:\/\/pjq.me\/?p=1853#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pjq.me\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u62e5\u6709\u81ea\u5df1\u672c\u5730\u7684ChatGPT"}]},{"@type":"WebSite","@id":"https:\/\/pjq.me\/#website","url":"https:\/\/pjq.me\/","name":"Jianqing&#039;s Blog","description":"Thoughts and Future","publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pjq.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60","name":"pengjianqing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/","url":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","width":460,"height":752,"caption":"pengjianqing"},"logo":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/"},"url":"https:\/\/pjq.me\/?author=1"}]}},"views":3004,"_links":{"self":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/1853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1853"}],"version-history":[{"count":8,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/1853\/revisions"}],"predecessor-version":[{"id":1864,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/1853\/revisions\/1864"}],"wp:attachment":[{"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}