{"id":11949,"date":"2023-09-17T07:00:23","date_gmt":"2023-09-16T22:00:23","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=11949"},"modified":"2023-08-26T02:12:44","modified_gmt":"2023-08-25T17:12:44","slug":"news-api-chatgpt-%e3%81%a7%ef%bc%91%e6%97%a5%e3%81%ae%e6%b5%81%e3%82%8c%e3%82%92%e8%a6%81%e7%b4%84%e3%81%97%e3%81%a6%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=11949","title":{"rendered":"News API + ChatGPT \u3067\uff11\u65e5\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u8981\u7d04\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u30cb\u30e5\u30fc\u30b9\u3092\u898b\u3066\u3044\u305f\u3089\u300c<strong>\u30c1\u30e3\u30c3\u30c8\u578b AI \u306e\u30e6\u30fc\u30b6\u30fc\u6570\u304c\u6e1b\u5c11\u3057\u3066\u3044\u308b<\/strong>\u300d\u3068\u3044\u3046\u5185\u5bb9\u3092\u898b\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089\u300c<strong>\u5e7b\u6ec5\u671f\u306b\u7a81\u5165\u304b\uff01\uff1f<\/strong>\u300d\u3068\u307e\u3067\u8a00\u308f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001<span style=\"font-size: 1rem;\">\u79c1\u306f\u3068\u3066\u3082\u4fbf\u5229\u306b\u611f\u3058\u3066\u3044\u3066\u3001\u3082\u3046\u696d\u52d9\u3060\u3051\u3067\u306a\u304f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u3082\u4f7f\u3063\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<\/span><\/p>\n<p>\u305d\u3057\u3066\u305d\u3093\u306a\u4e2d\u3001\u300c<a href=\"https:\/\/artifact.news\/\" target=\"_blank\" rel=\"noopener\"><strong>Artifact<\/strong><\/a>\u300d\u3068\u3044\u3046\u6d77\u5916\u306e\u30cb\u30e5\u30fc\u30b9\u30a2\u30d7\u30ea\u3067\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u3042\u308b\u3068\u805e\u304d\u3064\u3051\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">AI \u306b\u3088\u308b\u30cb\u30e5\u30fc\u30b9\u306e\u8981\u7d04<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3059\u3002<br \/>\n\u2193\u2193\u2193<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11953\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_4.png\" alt=\"\" width=\"640\" height=\"978\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_4.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_4-196x300.png 196w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u30b3\u30ec\u3044\u3044\u3067\u3059\u3088\u306d\u3002\ud83d\udc4d<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u305f\u304f\u3055\u3093\u306e\u30cb\u30e5\u30fc\u30b9\u5168\u90e8\u8aad\u3080\u306e\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u306a\u306e\u3067\u79c1\u306f\u300c<strong>\u3046\u30fc\u3093\u3001\u30b3\u30ec\u9577\u3063\u3052\u3047\u8a18\u4e8b\u3060\u306a\u2026\ud83d\ude05<\/strong>\u300d\u3068\u611f\u3058\u305f\u3068\u304d\u306f<code>ChatGPT<\/code>\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u805e\u3044\u3066\u307e\u3057\u305f\u3002<\/p>\n<div>\n<pre>#ChatGPT\u30d7\u30ed\u30f3\u30d7\u30c8\r\n\r\n<strong>\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u300c\u7d50\u5c40\u4f55\u304c\u8a00\u3044\u305f\u3044\u306e\uff1f\u300d\u3068\u3044\u3046\u7591\u554f\u306b\u7b54\u3048\u308b\u3088\u3046\u306b\u7b87\u6761\u66f8\u304d\u3067\u4e09\u884c\u306b\u8981\u7d04\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n\r\n<strong>\uff08\u3053\u3053\u306bURL\uff09<\/strong><\/pre>\n<\/div>\n<p>\u203b \u3061\u306a\u307f\u306b\u3053\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u79c1\u304c\u904b\u55b6\u3057\u3066\u3044\u308b <a href=\"https:\/\/www.wordpave.work\/\" target=\"_blank\" rel=\"noopener\">wordpave<\/a> \u3060\u3068\u3088\u308a\u7c21\u5358\u306b\u4f7f\u3048\u307e\u3059\uff01<\/p>\n<p>\u305f\u3060\u3057\u3001<code>ChatGPT<\/code>\u306e\u8981\u7d04\u80fd\u529b\u306f\u3068\u3066\u3082\u6e80\u8db3\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u6bce\u56de\u30b3\u30d4\u30da\u3059\u308b\u4f5c\u696d\u304c\u3081\u3093\u3069\u3046\u306a\u3093\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u300c<strong>\uff11\u65e5\u306b\uff11\u56de\u3001 News API + ChatGPT API \u3067\u30cb\u30e5\u30fc\u30b9\u306e\u8981\u7d04\u3092\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b<\/strong>\u300d\u3068\u3044\u3046\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude0a\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4445 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png\" alt=\"\" width=\"370\" height=\"310\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2.png 370w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_2-300x251.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/>\u300c\u305f\u307e\u306b ChatGPT \u3092\u30d9\u30bf\u8912\u3081\u3059\u308b\u3068\u3001<br \/>\n\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01\ud83d\ude0a<br \/>\n\u3068\u7d75\u6587\u5b57\u4ed8\u304d\u306b\u306a\u308b\u306e\u3067\u3001\u3059\u3054\u304f\u304b\u308f\u3044\u3044\u3067\u3059\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 10.x<\/p>\n<h1>News API \u306e\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b<\/h1>\n<p>\u307e\u305a<code>News API<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f<code>API<\/code>\u30ad\u30fc\u3068\u547c\u3070\u308c\u308b\u300c<strong>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u3088\u3046\u306a\u3082\u306e<\/strong>\u300d\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\uff082023.8.25 \u73fe\u5728\uff09<\/p>\n<p>\u307e\u305a\u306f <a href=\"https:\/\/newsapi.org\/\" target=\"_blank\" rel=\"noopener\">News API\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/a> \u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u30da\u30fc\u30b8\u53f3\u4e0a\u306b\u300c<strong>Get API key<\/strong>\u300d\u3068\u66f8\u304b\u308c\u305f\u30dc\u30bf\u30f3\u304c\u3042\u308b\u306e\u3067\u3053\u308c\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11951\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_1.png\" alt=\"\" width=\"270\" height=\"71\" \/><\/p>\n<p>\u30da\u30fc\u30b8\u79fb\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u305d\u308c\u305e\u308c\u5165\u529b\uff06\u30c1\u30a7\u30c3\u30af\u3057\u3066\u300c<strong>Submit<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>First name: \u540d\u524d<\/li>\n<li>Email address: \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>Choose a password: \u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<li>You are&#8230;: \u500b\u4eba\u3067\u306e\u5229\u7528\u304b\u30d3\u30b8\u30cd\u30b9\u3067\u306e\u5229\u7528\u304b\u9078\u629e\u3002\u306a\u304a\u3001\u30d3\u30b8\u30cd\u30b9\u306e\u5834\u5408\u306f\u6709\u6599\u3067\u3059\u3002\u203b<\/li>\n<li>\uff08\u30ed\u30dc\u30c3\u30c8\u3058\u3083\u3042\u308a\u307e\u305b\u3093\u3092\u30c1\u30a7\u30c3\u30af\uff09<\/li>\n<li>\u5229\u7528\u898f\u7d04\u3092\u8aad\u3093\u3067\u3001\u540c\u610f\u3059\u308b\u306a\u3089\u30dc\u30c3\u30af\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b<\/li>\n<\/ul>\n<p>\u203b \u958b\u767a\u3059\u308b\u305f\u3081\u306a\u3089\u7121\u6599\u3002\u305f\u3060\u3057\u3001\u30cb\u30e5\u30fc\u30b9\u306f24\u6642\u9593\u9045\u308c\u308b\u306a\u3069\u306e\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306f <a href=\"https:\/\/newsapi.org\/pricing\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11950\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_2.png\" alt=\"\" width=\"471\" height=\"695\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_2.png 471w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_2-203x300.png 203w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\uff08\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u30c1\u30a7\u30c3\u30af\u304c\u3042\u308b\u3068\u601d\u3044\u304d\u3084\u3001\u3044\u304d\u306a\u308a\ud83d\ude2f\uff09<code>API<\/code>\u30ad\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11952\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_3.png\" alt=\"\" width=\"463\" height=\"418\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_3.png 463w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/08\/news_api_chatgpt_summary_3-300x271.png 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/p>\n<p>\u3067\u306f\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b<code>Laravel<\/code>\u306e<code>.env<\/code>\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<div>\n<pre><strong>NEWS_API_KEY=****************************<\/strong><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u3001<code>News API<\/code>\u3078\u306e\u767b\u9332\u306f\u5b8c\u4e86\u3067\u3059\u2757<\/p>\n<h1>ChatGPT API\u306e\u767b\u9332<\/h1>\n<p><code>ChatGPT API<\/code>\uff08<code>OpenAI<\/code>\uff09\u3078\u306e\u767b\u9332\u306f\u904e\u53bb\u306b\u8a18\u4e8b\u3068\u3057\u3066\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\uff12\u3064\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/blog.capilano-fw.com\/?p=11642#OpenAI_API\" target=\"_blank\" rel=\"noopener\">OpenAI \u306e API \u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b<\/a><\/li>\n<li><a href=\"https:\/\/blog.capilano-fw.com\/?p=11642#OpenAI\" target=\"_blank\" rel=\"noopener\">OpenAI\u306b\u8ab2\u91d1\u767b\u9332\u3059\u308b<\/a><\/li>\n<\/ul>\n<p><strong>\u26a0 \u6ce8\u610f\uff1a \u3064\u307e\u308a\u3001<code>OpenAI<\/code>\u306b\u4e8b\u524d\u652f\u6255\u3044\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u6599\u91d1\u306f<a href=\"https:\/\/openai.com\/pricing\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3002\u305f\u3060\u3001\u4eca\u56de\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\uff11\u30bb\u30f3\u30c8\u3067\u3057\u305f\u306e\u3067\u5b89\u304b\u3063\u305f\u3067\u3059\u3002<\/strong><\/p>\n<p>\u3067\u306f\u3001\u3053\u3063\u3061\u306e<code>API<\/code>\u30ad\u30fc\u3082\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<div>\n<pre><strong>OPENAI_API_KEY=\"*********************************\"<\/strong><\/pre>\n<p>\u203b \u30cf\u30a4\u30d5\u30f3\u3092\u542b\u3093\u3067\u3044\u305f\u306e\u3067\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\u3067\u56f2\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u4e0d\u8981\uff1f\uff1f\ud83e\udd14\uff09<\/p>\n<\/div>\n<h1>\u8981\u7d04\u3057\u305f\u30cb\u30e5\u30fc\u30b9\u3092\u9001\u4fe1\u3059\u308b\u624b\u9806<\/h1>\n<p>\u6b21\u306b\u3001\u5b9f\u969b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u884c\u304f\u524d\u306b\u8981\u7d04\u30cb\u30e5\u30fc\u30b9\u3092\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u624b\u9806\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<ol>\n<li>New API \u3092\u4f7f\u3063\u3066\u5404\u30cb\u30e5\u30fc\u30b9\u672c\u6587\u3092\u53d6\u5f97<\/li>\n<li>\u5404\u30cb\u30e5\u30fc\u30b9\u3092\u7d50\u5408\u3057\u3066\uff11\u3064\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210<\/li>\n<li>\u3053\u308c\u3092 ChatGPT API \u3092\u4f7f\u3063\u3066\u8981\u7d04<\/li>\n<li>\u8981\u7d04\u3057\u305f\u30cb\u30e5\u30fc\u30b9\u3092\u30e1\u30fc\u30eb\u3067\u9001\u4fe1<\/li>\n<\/ol>\n<p>\u3064\u307e\u308a\u3001\u300c<strong>\u30cb\u30e5\u30fc\u30b9\u3092\u53d6\u3063\u3066\u304d\u3066 ChatGPT \u306b\u6295\u3052\u308b<\/strong>\u300d\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3057\u305f\u3060\u3051\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>composer require openai-php\/laravel<\/strong><\/pre>\n<p>\u203b \u3082\u3057\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001<code>composer.lock<\/code>\u3092\u524a\u9664\u3057\u3066\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u30fb\u30d5\u30a1\u30a4\u30eb\u3092<code>Laravel<\/code>\u5074\u3078\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan vendor:publish --provider=\"OpenAI\\Laravel\\ServiceProvider\"<\/strong><\/pre>\n<\/div>\n<\/div>\n<p>\u3067\u306f\u3053\u3053\u304b\u3089\u304c\u672c\u683c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u306f\u3058\u307e\u308a\u3067\u3059\u2757<\/p>\n<h1>\u30e1\u30fc\u30eb\u9001\u4fe1\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306e\u9805\u76ee\u3067\u672c\u4f53\u3092\u3064\u304f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5148\u306b\u90e8\u54c1\u306b\u306a\u308b\u300c<strong>\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u90e8\u5206<\/strong>\u300d\u3092\u3064\u304f\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:mail NewsSummerized<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002\uff08<strong>\u592a\u5b57<\/strong>\u304c\u5909\u66f4\u3057\u305f\u90e8\u5206\u3067\u3059\uff09<\/p>\n<div>\n<pre>&lt;?php\r\n\r\nnamespace App\\Mail;\r\n\r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\nuse Illuminate\\Mail\\Mailable;\r\nuse Illuminate\\Mail\\Mailables\\Content;\r\nuse Illuminate\\Mail\\Mailables\\Envelope;\r\nuse Illuminate\\Queue\\SerializesModels;\r\n\r\nclass NewsSummerized extends Mailable\r\n{\r\n    use Queueable, SerializesModels;\r\n\r\n    \/**\r\n     * Create a new message instance.\r\n     *\/\r\n    <strong>public function __construct(private string $summary_text)<\/strong>\r\n<strong>    {}<\/strong>\r\n\r\n    \/**\r\n     * Get the message envelope.\r\n     *\/\r\n    public function envelope(): Envelope\r\n    {\r\n        <strong>$today = today();<\/strong>\r\n<strong>        $subject = $today-&gt;format('Y\/m\/d') . '\u306e\u30cb\u30e5\u30fc\u30b9\u307e\u3068\u3081';<\/strong>\r\n\r\n<strong>        return new Envelope(<\/strong>\r\n<strong>            subject: $subject,<\/strong>\r\n<strong>        );<\/strong>\r\n    }\r\n\r\n    \/**\r\n     * Get the message content definition.\r\n     *\/\r\n    public function content(): Content\r\n    {\r\n        <strong>return new Content(<\/strong>\r\n<strong>            htmlString: nl2br($this-&gt;summary_text), \/\/ \u4eca\u56de\u306f\u3081\u3093\u3069\u3046\u306a\u306e\u3067\u30d3\u30e5\u30fc\u3092\u4f7f\u308f\u305a\u306b\u76f4\u63a5 HTML \u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059<\/strong>\r\n<strong>        );<\/strong>\r\n    }\r\n\r\n    \/**\r\n     * Get the attachments for the message.\r\n     *\r\n     * @return array&lt;int, \\Illuminate\\Mail\\Mailables\\Attachment&gt;\r\n     *\/\r\n    public function attachments(): array\r\n    {\r\n        return [];\r\n    }\r\n}<\/pre>\n<p>\u3053\u308c\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>Mail::to($to)-&gt;send(new NewsSummerized($text));<\/strong><\/pre>\n<\/div>\n<h1>ChatGPT \u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<\/div>\n<p>\u7d9a\u3044\u3066\u3001<code>ChatGPT<\/code>\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u90e8\u5206\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u30b3\u30fc\u30c9\u5185\u306b\u300c\u30d2\u30a2\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u300d\u306a\u3069\u3067\u76f4\u63a5\u66f8\u3044\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u30c1\u30a7\u30c3\u30af\u3057\u306b\u304f\u3044\u306e\u3067\u3001\u3042\u3048\u3066<code>Blade<\/code>\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>resources\/views\/summary_news_prompt.blade.php<\/strong><\/p>\n<div>\n<pre><strong>\u4ee5\u4e0b\u306e\u30c6\u30ad\u30b9\u30c8\u304b\u3089\uff11\u65e5\u306e\u6d41\u308c\u304c\u308f\u304b\u308b\u3088\u3046\u306b\u8981\u7d04\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n\r\n<strong>\u306a\u304a\u3001\u6761\u4ef6\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/strong>\r\n\r\n<strong>\u30fb\u7b87\u6761\u66f8\u304d\u306b\u3059\u308b<\/strong>\r\n<strong>\u30fb\u304a\u304a\u3080\u306d\uff15\u5206\u4ee5\u5185\u3067\u8aad\u3081\u308b\u3088\u3046\u306a\u6587\u5b57\u6570\u306b\u3059\u308b<\/strong>\r\n<strong>\u30fb\u4f3c\u3066\u3044\u308b\u30cb\u30e5\u30fc\u30b9\u306f\u3072\u3068\u3064\u306b\u307e\u3068\u3081\u308b<\/strong>\r\n<strong>\u30fb\u7b87\u6761\u66f8\u304d\u3060\u3051\u3067\u56de\u7b54\u3059\u308b\uff08\u8aac\u660e\u6587\u306f\u4e0d\u8981\uff09<\/strong>\r\n<strong>\u30fb\u82f1\u8a9e\u3067\u8003\u3048\u3066\u65e5\u672c\u8a9e\u3067\u51fa\u529b\u3059\u308b<\/strong>\r\n\r\n<strong>#\u30c6\u30ad\u30b9\u30c8<\/strong>\r\n<strong>{{ $text }}<\/strong><\/pre>\n<p>\u203b \u300c\u82f1\u8a9e\u3067\u301c\u300d\u306e\u90e8\u5206\u306fX\uff08\u65e7\u30c4\u30a4\u30c3\u30bf\u30fc\uff09\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u6d41\u308c\u3066\u304d\u305f\u60c5\u5831\u3067\u3001\u3068\u3066\u3082\u6709\u76ca\u3067\u3057\u305f\u3002\u611f\u8b1d\uff01<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u81ea\u7531\u306b\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>$prompt = view('summary_news_prompt', [<\/strong>\r\n<strong>    'text' =&gt; '\uff08\u3053\u3053\u306b\u8981\u7d04\u3059\u308b\u524d\u306e\u30c6\u30ad\u30b9\u30c8\uff09'<\/strong>\r\n<strong>])-&gt;render();<\/strong><\/pre>\n<\/div>\n<\/div>\n<h1>\u30cb\u30e5\u30fc\u30b9\u8981\u7d04\u3092\u9001\u4fe1\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u6210\u3059\u308b<\/h1>\n<p>\u3084\u3063\u3068\u672c\u4f53\u307e\u3067\u305f\u3069\u308a\u7740\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u72ec\u81ea\u306e<code>Artisan<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u8981\u7d04\u3057\u305f\u30cb\u30e5\u30fc\u30b9\u3092\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u307e\u3059\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:command SendNewsSummaryCommand<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Console\/Commands\/SendNewsSummaryCommand.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Console\\Commands;<\/strong>\r\n\r\n<strong>use App\\Mail\\NewsSummerized;<\/strong>\r\n<strong>use Illuminate\\Console\\Command;<\/strong>\r\n<strong>use Illuminate\\Support\\Arr;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Http;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Mail;<\/strong>\r\n<strong>use Illuminate\\Support\\Str;<\/strong>\r\n<strong>use OpenAI\\Laravel\\Facades\\OpenAI;<\/strong>\r\n\r\n<strong>class SendNewsSummaryCommand extends Command<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * The name and signature of the console command.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @var string<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    protected $signature = 'send:news_summary';<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * The console command description.<\/strong>\r\n<strong>     *<\/strong>\r\n<strong>     * @var string<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    protected $description = 'Send news summary with News API &amp; ChatGPT API';<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Execute the console command.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function handle()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $description_text = $this-&gt;getNewsDescriptionText();<\/strong>\r\n<strong>        $summary_text = $this-&gt;getSummaryText($description_text);<\/strong>\r\n\r\n<strong>        $to = 'test@example.com';<\/strong>\r\n<strong>        Mail::to($to)-&gt;send(new NewsSummerized($summary_text));<\/strong>\r\n\r\n<strong>        return Command::SUCCESS;<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function getNewsDescriptionText()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $new_api_url = 'https:\/\/newsapi.org\/v2\/top-headlines?country=jp&amp;apiKey='. env('NEWS_API_KEY'); \/\/ \u672c\u6765\u306f config \u304b\u3089\u53d6\u5f97\u3059\u3079\u304d\u3067\u3059<\/strong>\r\n\r\n<strong>        try {<\/strong>\r\n\r\n<strong>            $response = Http::get($new_api_url);<\/strong>\r\n\r\n<strong>        } catch (\\Throwable $th) {<\/strong>\r\n\r\n<strong>            $this-&gt;error($th-&gt;getMessage());<\/strong>\r\n<strong>            throw $th;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        $news_data = $response-&gt;json();<\/strong>\r\n<strong>        $description_texts = [];<\/strong>\r\n\r\n<strong>        foreach ($news_data['articles'] as $article) {<\/strong>\r\n\r\n<strong>            $article_description = $article['description'];<\/strong>\r\n\r\n<strong>            if(Str::length($article_description) &gt; 0) {<\/strong>\r\n\r\n<strong>                $description_texts[] = $article_description;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return implode(\"\\n\\n\", $description_texts);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    private function getSummaryText($original_text)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $prompt = view('summary_news_prompt', [<\/strong>\r\n<strong>            'text' =&gt; $original_text<\/strong>\r\n<strong>        ])-&gt;render();<\/strong>\r\n\r\n<strong>        try {<\/strong>\r\n\r\n<strong>            $result = OpenAI::chat()-&gt;create([<\/strong>\r\n<strong>                'model' =&gt; 'gpt-3.5-turbo',<\/strong>\r\n<strong>                'messages' =&gt; [<\/strong>\r\n<strong>                    ['role' =&gt; 'user', 'content' =&gt; $prompt],<\/strong>\r\n<strong>                ],<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>        } catch (\\Throwable $th) {<\/strong>\r\n\r\n<strong>            $this-&gt;error($th-&gt;getMessage());<\/strong>\r\n<strong>            throw $th;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return Arr::get($result, 'choices.0.message.content');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u3059\u3079\u3066\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\u3002\ud83d\ude0a\u2728<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u3061\u306a\u307f\u306b\u79c1\u306e\u5834\u5408\u3001\u30e1\u30fc\u30eb\u306e\u30c6\u30b9\u30c8\u306f<code>mailcatcher<\/code>\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001\u307f\u306a\u3055\u3093\u306f<code>MAILGUN<\/code>\u3084\u30ed\u30b0\u306a\u3069\u304a\u597d\u304d\u306a\u3082\u306e\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div>\n<pre><strong>php artisan send:news_summary<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11961\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_6.png\" alt=\"\" width=\"640\" height=\"68\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_6.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_6-300x32.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u5c4a\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u4e2d\u8eab\u306f\u3069\u3046\u306a\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11960\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_5.png\" alt=\"\" width=\"436\" height=\"563\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_5.png 436w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_5-232x300.png 232w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/p>\n<p>\u3069\u3046\u3067\u3057\u3087\u3046\u2757<br \/>\n\u306a\u304b\u306a\u304b\u3044\u3044\u8981\u7d04\u306b\u306a\u3063\u3066\u3044\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\uff08\u305f\u3060\u3001\u3053\u308c\u3092\u898b\u308b\u9650\u308a\u666e\u901a\u306b\u5143\u306e\u30cb\u30e5\u30fc\u30b9\u30fb\u30bf\u30a4\u30c8\u30eb\u3060\u3051\u3067\u3082\u3044\u3044\u6c17\u3082\u3059\u308b\u3093\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b<code>URL<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304b\u3089\u5143\u30c6\u30ad\u30b9\u30c8\u3092\u3064\u304f\u308b\u3068\u3001\u3088\u308a\u60c5\u5831\u91cf\u304c\u5927\u304d\u304f\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff09<\/p>\n<p>\u3061\u306a\u307f\u306b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u4eca\u56de<code>OpenAI<\/code>\u306b10\u30c9\u30eb\u3092\u8ab2\u91d1\u3057\u3066\u304b\u3089\u5b9f\u884c\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\uff11\u56de\u306b\u3064\u304d\uff11\u30bb\u30f3\u30c8\uff08\uff1d<code>0.01\u30c9\u30eb<\/code>\u2252<code>0.0423\u5186<\/code>\uff1a2023.8.26 \u73fe\u5728\uff09\u3067\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11962\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_7.png\" alt=\"\" width=\"337\" height=\"215\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_7.png 337w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/09\/news_api_chatgpt_summary_7-300x191.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/p>\n<p>\u601d\u3063\u305f\u3088\u308a\u5b89\u3044\u3067\u3059\u306d\ud83d\udc4d<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u3092\u5fdc\u7528\u3055\u305b\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u7279\u5b9a\u306e\u696d\u754c\u306b\u95a2\u9023\u3059\u308b\u30cb\u30e5\u30fc\u30b9\u3060\u3051\u3092 ChatGPT \u306b\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3055\u305b\u3001\u305d\u308c\u3089\u306e\u30cb\u30e5\u30fc\u30b9\u3060\u3051\u3092\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b<\/li>\n<li>\u904e\u53bb\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u8caf\u3081\u3066\u3044\u304d\u3001\u305d\u306e\u6d41\u308c\u304b\u3089\u6295\u8cc7\u3059\u3079\u304d\u30a8\u30ea\u30a2\u3092 ChatGPT \u306b\u63d0\u6848\u3055\u305b\u308b<\/li>\n<li>\u540c\u3058\u304f\u904e\u53bb\u30cb\u30e5\u30fc\u30b9\u304b\u3089\u6642\u4ee3\u306e\u6d41\u308c\u3092\u8aad\u307f\u53d6\u308a\u3001ChatGPT \u306b\u672a\u6765\u3092\u4e88\u6e2c\u3055\u305b\u65b0\u5546\u54c1\u3084\u65b0\u696d\u614b\u3078\u306e\u77e5\u898b\u3092\u5f97\u308b<\/li>\n<\/ul>\n<p>\u3082\u3057\u3053\u3046\u3044\u3063\u305f\u6a5f\u80fd\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3001\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude0a\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>News API + ChatGPT API<\/strong>\u300d\u3092\u4f7f\u3063\u3066\u30cb\u30e5\u30fc\u30b9\u8981\u7d04\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u4f7f\u3044\u65b9\u306b\u5bc4\u3063\u3066\u306f<code>ChatGPT API<\/code>\u306e\u6599\u91d1\u304c\u9ad8\u304f\u306a\u308b\u304b\u3082\u306a\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u4e0d\u5b89\u306a\u3068\u3053\u308d\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3069\u3046\u3084\u3089<code>ChatGPT<\/code>\u306f\u3081\u3061\u3083\u304f\u3061\u3083\u8d64\u5b57\u3089\u3057\u3044\u306e\u3067\u3001\u3042\u307e\u308a\u7121\u7406\u306f\u8a00\u3048\u307e\u305b\u3093\u306d\uff08\u7b11\uff09<\/p>\n<p>\u3061\u306a\u307f\u306b\uff08\u500b\u4eba\u7684\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3060\u3051\u306f\uff09\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3082<code>ChatGPT<\/code>\u306b\u304a\u9858\u3044\u3057\u305f\u308a\u3082\u3057\u307e\u3059\u304c\u3001\u611f\u60f3\u3068\u3057\u3066\u306f\u300c\u6700\u521d\u306e70%\u307e\u3067\u306f\u7d20\u6674\u3089\u3057\u3044\u3001\u3067\u3082\u305d\u306e\u5f8c\u3082\u4f7f\u3063\u305f\u3089\u30a8\u30e9\u30a4\u76ee\u306b\u5408\u3046\u2026\u300d\u3068\u3044\u3063\u305f\u30ab\u30f3\u30b8\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u300c\u3053\u3053\u5909\u3048\u3068\u3044\u3066\u300d\u3068\u8a00\u3063\u3066\u5909\u3048\u3066\u3082\u3089\u3063\u3066\u3082\u3001\u305d\u306e\u6b21\u306e\u300c\u3042\u3001\u3053\u3053\u3082\u9593\u9055\u3063\u3066\u308b\u304b\u3089\u5909\u3048\u3066\u306d\u300d\u3068\u8a00\u3046\u3068\u3001\u3055\u3063\u304d\u76f4\u3057\u305f\u6240\u3092\u7121\u8996\u3057\u305f\u308a\u3057\u3066\u300c\u3044\u3084\u3001\u3055\u3063\u304d\u306e\u3069\u3053\u884c\u3063\u305f\u306e\ud83d\udca2\u300d\u3068\u3044\u3046\u3053\u3068\u304c\u591a\u767a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u306f\u300c<strong>\u73fe\u5728\u5730\u304b\u3089\u25cf\u25cf\u99c5\u5468\u8fba\u306b\u306f\u81ea\u52d5\u3067\u884c\u304f\u3051\u3069\u3001\u305d\u3053\u304b\u3089\u306f\u81ea\u5206\u3067\u904b\u8ee2\u3057\u306a\u304d\u3083\u30c0\u30e1<\/strong>\u300d\u307f\u305f\u3044\u306a\u30ab\u30f3\u30b8\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u300c<strong>GPT-5<\/strong>\u300d\u304c\u5546\u6a19\u767b\u9332\u306e\u7533\u8acb\u304c\u3055\u308c\u305f\u305d\u3046\u3067\u3059\u3057\u3001\u4eca\u5f8c\u307e\u305f\u7cbe\u5ea6\u304c\u4e0a\u304c\u308b\u304b\u3082\u3067\u3059\u306d\u3002\u4eca\u5f8c\u3082\u6ce8\u76ee\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6068 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/>\u300c\u4e45\u3057\u3076\u308a\u306b<br \/>\n\u30d2\u30af\u30bd\u30f3\u30fb\u30b0\u30ec\u30a4\u30b7\u30fc vs \u9ad9\u7530\u5ef6\u5f66<br \/>\n\u306e\u8a66\u5408\u3092\u89b3\u307e\u3057\u305f\ud83e\udd4a\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u30cb\u30e5\u30fc\u30b9\u3092\u898b\u3066\u3044\u305f\u3089\u300c\u30c1\u30e3\u30c3\u30c8\u578b AI \u306e\u30e6\u30fc\u30b6\u30fc\u6570\u304c\u6e1b\u5c11\u3057\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u5185\u5bb9\u3092\u898b\u307e\u3057\u305f\u3002 \u3069\u3046\u3084\u3089\u300c\u5e7b\u6ec5\u671f\u306b\u7a81\u5165\u304b\uff01\uff1f\u300d\u3068\u307e\u3067\u8a00\u308f\u308c\u3066\u3044\u308b\u3088\u3046 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=11949\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;News API + ChatGPT \u3067\uff11\u65e5\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u8981\u7d04\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":11966,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[253,3],"tags":[],"class_list":["post-11949","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chatgpt","category-laravel"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11949","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11949"}],"version-history":[{"count":9,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11949\/revisions"}],"predecessor-version":[{"id":11967,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11949\/revisions\/11967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/11966"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}