{"id":3757,"date":"2023-06-25T11:13:29","date_gmt":"2023-06-25T11:13:29","guid":{"rendered":"https:\/\/picockpit.com\/raspberry-pi\/?p=3757"},"modified":"2023-07-03T10:33:23","modified_gmt":"2023-07-03T10:33:23","slug":"raspigpt-ai-assistant","status":"publish","type":"post","link":"https:\/\/picockpit.com\/raspberry-pi\/zh\/raspigpt-ai-assistant\/","title":{"rendered":"RaspiGPT - \u5efa\u7acb\u4e00\u4e2a\u4eba\u5de5\u667a\u80fd\u52a9\u624b"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail-1024x576.jpg\" alt=\"RaspiGPT\u4eba\u5de5\u667a\u80fd\u52a9\u624b\" class=\"wp-image-3781\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail-1024x576.jpg 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail-300x169.jpg 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail-768x432.jpg 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail-1536x864.jpg 1536w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail-18x10.jpg 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u968f\u7740GPT-4\u7b49\u8bed\u8a00\u6a21\u578b\u7684\u98de\u901f\u53d1\u5c55\uff0c\u6211\u4eec\u60f3\u628a\u4eba\u5de5\u667a\u80fd\u7684\u529b\u91cf\u5e26\u5230PiCockpit\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u7684\u5f00\u53d1\u4eba\u5458Chloe\u8bbe\u8ba1\u4e86\u65b0\u7684RaspiGPT\u5de5\u5177\uff0c\u7528\u4e8e <a href=\"https:\/\/picockpit.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u7801\u5934<\/a>\uff0c\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8eGPT\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u3002<\/p>\n\n\n\n<p>\u5b83\u7684\u76ee\u7684\u662f\u5728\u8fd9\u91cc\u56de\u7b54\u4e0eRasperry Pi\u6709\u5173\u7684\u95ee\u9898\u3002 <a href=\"https:\/\/picockpit.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u7801\u5934<\/a>.\u5f53\u7136\uff0c\u5982\u679c\u4f60\u9700\u8981\u4e86\u89e3\u5176\u4ed6\u7684\u4e1c\u897f\uff0c\u5b83\u4e5f\u4f1a\u5f88\u4e50\u610f\u56de\u7b54\u4f60\u7684\u95ee\u9898\uff0c\u4f46\u8981\u5feb\u901f\u63d0\u9192\u4f60\uff0c\u5b83\u662f\u9488\u5bf9\u6811\u8393\u6d3e\u548c\u6280\u672f\u76f8\u5173\u7684\u4e3b\u9898\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u60ca\u8bb6\u4e8e\u8bbe\u7f6e\u8fd9\u6837\u4e00\u4e2a\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u662f\u5982\u6b64\u7b80\u5355\uff0c\u6240\u4ee5\u6211\u4eec\u60f3\u5411\u4f60\u5c55\u793a\u5982\u4f55\u81ea\u5df1\u521b\u5efa\u4e00\u4e2a\u7c7b\u4f3c\u7684\u5e94\u7528\u7a0b\u5e8f!<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">1 \u4eba\u5de5\u667a\u80fd\u52a9\u7406\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1f<\/h2>\n\n\n\n<p>\u8be5\u5e94\u7528\u7a0b\u5e8f\u662f\u76f8\u5f53\u57fa\u672c\u7684\uff0c\u4f46\u5b83\u5305\u542b\u4e86\u4f60\u6240\u9700\u8981\u7684\u4e00\u5207\u3002\u6709\u4e00\u4e2a\u6587\u672c\u5b57\u6bb5\u53ef\u4ee5\u8f93\u5165\u63d0\u793a\u4fe1\u606f\uff0c\u8fd8\u6709\u6309\u94ae\u53ef\u4ee5\u91cd\u547d\u540d\u3001\u62a5\u544a\u3001\u5220\u9664\u6216\u521b\u5efa\u804a\u5929\u8bb0\u5f55\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"396\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/RaspiGPT-View-1024x396.png\" alt=\"RaspiGPT \u67e5\u770b\" class=\"wp-image-3769\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/RaspiGPT-View-1024x396.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/RaspiGPT-View-300x116.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/RaspiGPT-View-768x297.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/RaspiGPT-View-18x7.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/RaspiGPT-View.png 1532w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-black-color has-text-color\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u6ce8\u610f\u4e8b\u9879<\/mark><\/strong> \u4f60\u9700\u8981\u4e00\u4e2aOpenAI\u7684API\u5bc6\u94a5\u6765\u5efa\u7acb\u4f60\u81ea\u5df1\u7248\u672c\u7684\u8fd9\u4e2a\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">2 \u5b89\u88c5\u4f9d\u8d56\u6027<\/h2>\n\n\n\n<p>\u6211\u4eec\u5c06\u5728Raspberry Pi 4\u4e0a\u8fd0\u884c\u8be5\u6f14\u793a\uff0c\u4f46\u4efb\u4f55\u5176\u4ed6\u8fd0\u884cnode.js\u7684\u7cfb\u7edf\u90fd\u53ef\u4ee5\u5b8c\u5168\u4e00\u6837\u5730\u5de5\u4f5c\u3002\u4e3a\u6211\u4eec\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u5b89\u88c5\u4f9d\u8d56\u9879\u662f\u975e\u5e38\u76f4\u63a5\u7684\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4eceGitHub\u4e0a\u514b\u9686\u5b58\u50a8\u5e93\u3002<\/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;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"git clone https:\/\/github.com\/pi3g\/GPT-AI-Assistant.git\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><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 data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9\">git<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">clone<\/span><span style=\"color: #D8DEE9FF\"> https<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #616E88\">\/\/github.com\/pi3g\/GPT-AI-Assistant.git<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u9700\u8981\u5b89\u88c5node.js\u3001npm\u548cyarn\u3002\u8fdb\u5165 <a href=\"https:\/\/nodejs.org\/en\/download\" target=\"_blank\" rel=\"noreferrer noopener\">node.js\u4e0b\u7ebf\u9875\u9762<\/a> \u5e76\u4e3a\u4f60\u7684\u7cfb\u7edf\u4e0b\u8f7d\u6240\u9700\u7684\u7248\u672c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"257\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/node-js-versions-1024x257.png\" alt=\"node.js\u7248\u672c\" class=\"wp-image-3774\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/node-js-versions-1024x257.png 1024w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/node-js-versions-300x75.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/node-js-versions-768x193.png 768w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/node-js-versions-18x5.png 18w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/node-js-versions.png 1241w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7531\u4e8e\u6211\u5728Raspberry Pi 4\u4e0a\u8fd0\u884c\u8fd9\u4e2a\u4f8b\u5b50\uff0c\u6211\u9700\u8981\u4e0b\u8f7d <strong><em>ARMv8<\/em><\/strong> \u7248\u672c\u3002<\/p>\n\n\n\n<p>\u8981\u63d0\u53d6\u548c\u5b89\u88c5node.js\uff0c\u8bf7\u8fd0\u884c<\/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;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"tar -xavf node-v18.16.1-linux-arm64.tar.xzcd node-v18.16.1-linux-arm64\/sudo cp -R * \/usr\/local\/\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><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 data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9\">tar<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">xavf<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">node<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v18<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #B48EAD\">16.1<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">linux<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">arm64<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">tar<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #D8DEE9\">xz<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">cd<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">node<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v18<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #B48EAD\">16.1<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">linux<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">arm64<\/span><span style=\"color: #81A1C1\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">sudo<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">cp<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">R<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">*<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">usr<\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">local<\/span><span style=\"color: #81A1C1\">\/<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u5f53\u7136\uff0c\u6587\u4ef6\u540d\u5bf9\u4f60\u6765\u8bf4\u53ef\u80fd\u4e0d\u540c\uff0c\u8fd9\u53d6\u51b3\u4e8e\u4f60\u4e0b\u8f7d\u7684\u662f\u54ea\u4e2a\u7248\u672c\u3002 <\/p>\n\n\n\n<p>\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\u6765\u68c0\u67e5node.js\u548cnpm\u662f\u5426\u88ab\u6b63\u786e\u5b89\u88c5\u3002<\/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;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"node -vnpm -v\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><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 data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9\">node<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">v<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u8fd9\u4e9b\u5e94\u8be5\u8f93\u51fa\u6b63\u786e\u7684\u7248\u672c\uff0c\u5982\u679c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u51fa\u4e86\u95ee\u9898\uff0c\u5219\u8f93\u51fa\u4e00\u4e2a\u9519\u8bef\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">\u6ce8\u610f\u4e8b\u9879<\/mark><\/strong> \u8fdb\u4e00\u6b65\u7684\u8bf4\u660e\u4e5f\u53ef\u4ee5\u5728 <a href=\"https:\/\/github.com\/pi3g\/GPT-AI-Assistant\/blob\/main\/gpt-demo\/README.md\" target=\"_blank\" rel=\"noreferrer noopener\">README\u6587\u4ef6<\/a>.<\/p>\n<\/blockquote>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5yarn\u3002<\/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;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"npm install -g yarn\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><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 data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9\">npm<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">install<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9\">g<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">yarn<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u8fd9\u6837\u4e00\u6765\uff0c\u6240\u6709\u7684\u4f9d\u8d56\u90fd\u5df2\u5b89\u88c5\u5b8c\u6bd5\uff0c\u6211\u4eec\u53ef\u4ee5\u7ee7\u7eed\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3 \u6784\u5efa\u5e94\u7528\u7a0b\u5e8f<\/h2>\n\n\n\n<p>\u8ba9\u6211\u4eec\u6765\u770b\u770b\u5982\u4f55\u6784\u5efa\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u3002<\/p>\n\n\n\n<p>\u5bfc\u822a\u5230\u60a8\u7684OpenAI\u8d26\u6237\u7684API\u5bc6\u94a5\u9875\u9762\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684API\u5bc6\u94a5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"257\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/Create-new-API-Key.png\" alt=\"\u521b\u5efa\u65b0\u7684API\u5bc6\u94a5\" class=\"wp-image-3772\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/Create-new-API-Key.png 633w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/Create-new-API-Key-300x122.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/Create-new-API-Key-18x7.png 18w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/figure>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u7ed9\u5b83\u8d77\u4e2a\u540d\u5b57\uff0c\u6bd4\u5982 <em>\"RaspiGPT-Key<\/em>.\u8bf7\u786e\u4fdd\u5c06API\u5bc6\u94a5\u590d\u5236\u5230\u4f60\u7684\u526a\u8d34\u677f\u4e0a\u3002<\/p>\n\n\n\n<p>\u8fd9\u9700\u8981\u88ab\u7c98\u8d34\u5230\u4ee5\u4e0b\u7684\u884c\u4e2d <em>\"nuxt.config.ts\"<\/em> \u6587\u4ef6\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"457\" src=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/AI-assistant-config.png\" alt=\"\u4eba\u5de5\u667a\u80fd\u52a9\u7406\u914d\u7f6e\" class=\"wp-image-3771\" srcset=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/AI-assistant-config.png 587w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/AI-assistant-config-300x234.png 300w, https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/AI-assistant-config-15x12.png 15w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">4 \u8fd0\u884c\u4eba\u5de5\u667a\u80fd\u52a9\u624b<\/h2>\n\n\n\n<p>\u5728\u8fd9\u4e00\u70b9\u4e0a\uff0c\u6240\u8981\u505a\u7684\u5c31\u662f\u5efa\u7acb\u548c\u8fd0\u884c\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u9700\u8981\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff08\u786e\u4fdd\u4f60\u662f\u5728 <em>\"gpt-demo\"<\/em> \u76ee\u5f55\uff09\u3002<\/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;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewbox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"yarn installyarn buildyarn preview\" style=\"color:#d8dee9ff;display:none\" aria-label=\"\u62f7\u8d1d\" class=\"code-block-pro-copy-button\"><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 data-no-translation=\"\"><span class=\"line\"><span style=\"color: #D8DEE9\">yarn<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">install<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">yarn<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">build<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">yarn<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">preview<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u6700\u540e\u4e00\u6761\u547d\u4ee4\u5c06\u5728\u672c\u5730\u6258\u7ba1\u4eba\u5de5\u667a\u80fd\u52a9\u624b\uff0c\u56e0\u6b64\u8981\u8bbf\u95ee\u8be5\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u6253\u5f00 <em>\"http:\/\/localhost:3000\"<\/em> \u5728\u4f60\u7684\u6d4f\u89c8\u5668\u4e2d\u3002\u4e00\u4e2a\u5f88\u9177\u7684\u7279\u70b9\u662f\uff0c\u7b54\u6848\u662f\u5728\u751f\u6210\u8fc7\u7a0b\u4e2d\u6d41\u4f20\u7684\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u8ddf\u7740\u8bfb\u3002<\/p>\n\n\n\n<p>\u89c2\u770b\u8fd9\u4e2a\u89c6\u9891\uff08\u5373\u5c06\u63a8\u51fa\uff09\uff0c\u770b\u770b\u8fd9\u4e2a\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u7684\u884c\u52a8\u3002<\/p>\n<div class=\"shariff shariff-align-center shariff-widget-align-left shariff-buttonstretch\"><ul class=\"shariff-buttons theme-white orientation-horizontal buttonsize-medium\"><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fraspigpt-ai-assistant%2F&text=RaspiGPT%20%E2%80%93%20Build%20an%20AI%20assistant\" title=\"\u5728 X \u4e0a\u5206\u4eab\" aria-label=\"\u5728 X \u4e0a\u5206\u4eab\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#000\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#000\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#000\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fraspigpt-ai-assistant%2F\" title=\"\u5728Facebook\u4e0a\u5206\u4eab\" aria-label=\"\u5728Facebook\u4e0a\u5206\u4eab\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#3b5998\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#3b5998\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#3b5998\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button telegram shariff-nocustomcolor\" style=\"background-color:#4084A6\"><a href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fraspigpt-ai-assistant%2F&text=RaspiGPT%20%E2%80%93%20Build%20an%20AI%20assistant\" title=\"\u5728\u7535\u62a5\u4e0a\u5206\u4eab\" aria-label=\"\u5728\u7535\u62a5\u4e0a\u5206\u4eab\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0088cc; color:#0088cc\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#0088cc\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 32 32\"><path fill=\"#0088cc\" d=\"M30.8 6.5l-4.5 21.4c-.3 1.5-1.2 1.9-2.5 1.2L16.9 24l-3.3 3.2c-.4.4-.7.7-1.4.7l.5-7L25.5 9.2c.6-.5-.1-.8-.9-.3l-15.8 10L2 16.7c-1.5-.5-1.5-1.5.3-2.2L28.9 4.3c1.3-.5 2.3.3 1.9 2.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#0088cc\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fpicockpit.com%2Fraspberry-pi%2Fzh%2Fraspigpt-ai-assistant%2F\" title=\"\u5206\u4eab\u81f3Reddit\" aria-label=\"\u5206\u4eab\u81f3Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#ff4500\" target=\"_blank\"><span class=\"shariff-icon\" style=\"fill:#ff4500\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><span class=\"shariff-text\" style=\"color:#ff4500\">\u5206\u4eab<\/span>&nbsp;<\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740GPT-4\u7b49\u8bed\u8a00\u6a21\u578b\u7684\u98de\u901f\u53d1\u5c55\uff0c\u6211\u4eec\u60f3\u628a\u4eba\u5de5\u667a\u80fd\u7684\u529b\u91cf\u5e26\u5230PiCockpit\u3002\u6240\u4ee5\u6211\u4eec\u7684\u5f00\u53d1\u4eba\u5458Chloe\u4e3aPiCockpit\u8bbe\u8ba1\u4e86\u65b0\u7684RaspiGPT\u5de5\u5177\uff0c\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8eGPT\u7684\u4eba\u5de5\u667a\u80fd\u52a9\u624b\u3002\u5b83\u7684\u76ee\u7684\u662f\u5728PiCockpit\u4e2d\u56de\u7b54Rasperry Pi\u76f8\u5173\u7684\u95ee\u9898\u3002\u5f53\u7136\uff0c\u5982\u679c\u4f60...<\/p>","protected":false},"author":3,"featured_media":3781,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209,3],"tags":[210,259,257,254,255,258,187,256],"class_list":["post-3757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-raspberry-pi-how-to","tag-ai","tag-ai-assistant","tag-chatgpt","tag-gpt","tag-gpt-4","tag-language-model","tag-raspberry-pi","tag-raspigpt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>RaspiGPT - Build an AI assistant | PiCockpit<\/title>\n<meta name=\"description\" content=\"With the meteoric rise of GPT-4 we wanted to bring the power of AI to PiCockpit. So we designed the new RaspiGPT AI assistant for PiCockpit.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/picockpit.com\/raspberry-pi\/zh\/raspigpt-ai-assistant\/\" \/>\n<meta property=\"og:locale\" content=\"zh_HK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RaspiGPT - Build an AI assistant | PiCockpit\" \/>\n<meta property=\"og:description\" content=\"With the meteoric rise of GPT-4 we wanted to bring the power of AI to PiCockpit. So we designed the new RaspiGPT AI assistant for PiCockpit.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/picockpit.com\/raspberry-pi\/zh\/raspigpt-ai-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"PiCockpit\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pi3gshop\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-25T11:13:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-03T10:33:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nathan Busler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pi3g\" \/>\n<meta name=\"twitter:site\" content=\"@pi3g\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nathan Busler\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u8a08\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/\"},\"author\":{\"name\":\"Nathan Busler\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/e38fef75134e5e54175b2615a8c3eb47\"},\"headline\":\"RaspiGPT &#8211; Build an AI assistant\",\"datePublished\":\"2023-06-25T11:13:29+00:00\",\"dateModified\":\"2023-07-03T10:33:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/\"},\"wordCount\":488,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/PiCockpit-Blog-Thumbnail.jpg\",\"keywords\":[\"AI\",\"AI Assistant\",\"ChatGPT\",\"GPT\",\"GPT-4\",\"Language Model\",\"Raspberry Pi\",\"RaspiGPT\"],\"articleSection\":[\"AI\",\"Tutorials\"],\"inLanguage\":\"zh-HK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/\",\"name\":\"RaspiGPT - Build an AI assistant | PiCockpit\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/PiCockpit-Blog-Thumbnail.jpg\",\"datePublished\":\"2023-06-25T11:13:29+00:00\",\"dateModified\":\"2023-07-03T10:33:23+00:00\",\"description\":\"With the meteoric rise of GPT-4 we wanted to bring the power of AI to PiCockpit. So we designed the new RaspiGPT AI assistant for PiCockpit.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#breadcrumb\"},\"inLanguage\":\"zh-HK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#primaryimage\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/PiCockpit-Blog-Thumbnail.jpg\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/PiCockpit-Blog-Thumbnail.jpg\",\"width\":1920,\"height\":1080,\"caption\":\"RaspiGPT AI assistant\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/raspigpt-ai-assistant\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/category\\\/raspberry-pi-how-to\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"RaspiGPT &#8211; Build an AI assistant\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#website\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"name\":\"PiCockpit\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-HK\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#organization\",\"name\":\"PiCockpit.com\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"contentUrl\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/Screenshot-from-2023-07-24-15-01-24.png\",\"width\":1165,\"height\":283,\"caption\":\"PiCockpit.com\"},\"image\":{\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/pi3gshop\",\"https:\\\/\\\/x.com\\\/pi3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/#\\\/schema\\\/person\\\/e38fef75134e5e54175b2615a8c3eb47\",\"name\":\"Nathan Busler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-HK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g\",\"caption\":\"Nathan Busler\"},\"sameAs\":[\"https:\\\/\\\/buyzero.de\"],\"url\":\"https:\\\/\\\/picockpit.com\\\/raspberry-pi\\\/zh\\\/author\\\/nathan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RaspiGPT - \u6784\u5efa\u4eba\u5de5\u667a\u80fd\u52a9\u624b | PiCockpit","description":"\u968f\u7740GPT-4\u7684\u98de\u901f\u53d1\u5c55\uff0c\u6211\u4eec\u60f3\u628a\u4eba\u5de5\u667a\u80fd\u7684\u529b\u91cf\u5e26\u5230PiCockpit\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u4e3aPiCockpit\u8bbe\u8ba1\u4e86\u65b0\u7684RaspiGPT AI\u52a9\u624b\u3002","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:\/\/picockpit.com\/raspberry-pi\/zh\/raspigpt-ai-assistant\/","og_locale":"zh_HK","og_type":"article","og_title":"RaspiGPT - Build an AI assistant | PiCockpit","og_description":"With the meteoric rise of GPT-4 we wanted to bring the power of AI to PiCockpit. So we designed the new RaspiGPT AI assistant for PiCockpit.","og_url":"https:\/\/picockpit.com\/raspberry-pi\/zh\/raspigpt-ai-assistant\/","og_site_name":"PiCockpit","article_publisher":"https:\/\/www.facebook.com\/pi3gshop","article_published_time":"2023-06-25T11:13:29+00:00","article_modified_time":"2023-07-03T10:33:23+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg","type":"image\/jpeg"}],"author":"Nathan Busler","twitter_card":"summary_large_image","twitter_creator":"@pi3g","twitter_site":"@pi3g","twitter_misc":{"\u4f5c\u8005":"Nathan Busler","\u9810\u8a08\u95b1\u8b80\u6642\u9593":"3 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#article","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/"},"author":{"name":"Nathan Busler","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/e38fef75134e5e54175b2615a8c3eb47"},"headline":"RaspiGPT &#8211; Build an AI assistant","datePublished":"2023-06-25T11:13:29+00:00","dateModified":"2023-07-03T10:33:23+00:00","mainEntityOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/"},"wordCount":488,"commentCount":0,"publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg","keywords":["AI","AI Assistant","ChatGPT","GPT","GPT-4","Language Model","Raspberry Pi","RaspiGPT"],"articleSection":["AI","Tutorials"],"inLanguage":"zh-HK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/","url":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/","name":"RaspiGPT - \u6784\u5efa\u4eba\u5de5\u667a\u80fd\u52a9\u624b | PiCockpit","isPartOf":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#primaryimage"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#primaryimage"},"thumbnailUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg","datePublished":"2023-06-25T11:13:29+00:00","dateModified":"2023-07-03T10:33:23+00:00","description":"\u968f\u7740GPT-4\u7684\u98de\u901f\u53d1\u5c55\uff0c\u6211\u4eec\u60f3\u628a\u4eba\u5de5\u667a\u80fd\u7684\u529b\u91cf\u5e26\u5230PiCockpit\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u4e3aPiCockpit\u8bbe\u8ba1\u4e86\u65b0\u7684RaspiGPT AI\u52a9\u624b\u3002","breadcrumb":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#breadcrumb"},"inLanguage":"zh-HK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/"]}]},{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#primaryimage","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/06\/PiCockpit-Blog-Thumbnail.jpg","width":1920,"height":1080,"caption":"RaspiGPT AI assistant"},{"@type":"BreadcrumbList","@id":"https:\/\/picockpit.com\/raspberry-pi\/raspigpt-ai-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/picockpit.com\/raspberry-pi\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"https:\/\/picockpit.com\/raspberry-pi\/category\/raspberry-pi-how-to\/"},{"@type":"ListItem","position":3,"name":"RaspiGPT &#8211; Build an AI assistant"}]},{"@type":"WebSite","@id":"https:\/\/picockpit.com\/raspberry-pi\/#website","url":"https:\/\/picockpit.com\/raspberry-pi\/","name":"\u7801\u5934","description":"","publisher":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/picockpit.com\/raspberry-pi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-HK"},{"@type":"Organization","@id":"https:\/\/picockpit.com\/raspberry-pi\/#organization","name":"PiCockpit.com","url":"https:\/\/picockpit.com\/raspberry-pi\/","logo":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/","url":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","contentUrl":"https:\/\/picockpit.com\/raspberry-pi\/wp-content\/uploads\/2023\/07\/Screenshot-from-2023-07-24-15-01-24.png","width":1165,"height":283,"caption":"PiCockpit.com"},"image":{"@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pi3gshop","https:\/\/x.com\/pi3g"]},{"@type":"Person","@id":"https:\/\/picockpit.com\/raspberry-pi\/#\/schema\/person\/e38fef75134e5e54175b2615a8c3eb47","name":"Nathan Busler","image":{"@type":"ImageObject","inLanguage":"zh-HK","@id":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93fef66631dac0f47ce2c90f774cd4e4fe44028ea5266602e20fbf246f7d14f9?s=96&d=blank&r=g","caption":"Nathan Busler"},"sameAs":["https:\/\/buyzero.de"],"url":"https:\/\/picockpit.com\/raspberry-pi\/zh\/author\/nathan\/"}]}},"_links":{"self":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/3757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/comments?post=3757"}],"version-history":[{"count":25,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/3757\/revisions"}],"predecessor-version":[{"id":3867,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/posts\/3757\/revisions\/3867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/media?parent=3757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/categories?post=3757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/picockpit.com\/raspberry-pi\/zh\/wp-json\/wp\/v2\/tags?post=3757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}