{"id":75632,"date":"2024-11-01T14:30:00","date_gmt":"2024-11-01T05:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=75632"},"modified":"2024-11-07T17:52:43","modified_gmt":"2024-11-07T08:52:43","slug":"%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9ayaspin%e3%81%a7%e3%82%bf%e3%83%bc%e3%83%9f%e3%83%8a%e3%83%ab%e3%81%ab%e3%82%af%e3%83%ab%e3%82%af%e3%83%ab%e3%82%92%e5%87%ba%e3%81%9d%e3%81%86-ai-azure-openai-ll","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632","title":{"rendered":"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8<\/h2>\n\n\n\n<p>\u6b21\u306e\u3088\u3046\u306a <a href=\"https:\/\/azure.microsoft.com\/ja-jp\/products\/ai-services\/openai-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI<\/a> \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import os\nfrom openai import AzureOpenAI\nfrom dotenv import load_dotenv\nload_dotenv()\n\ndef send_prompt(prompt):\n    response = None\n    try:\n        client = AzureOpenAI(\n            api_key = os.getenv(\"AZURE_OPENAI_API_KEY\"),\n            azure_endpoint = os.getenv(\"AZURE_OPENAI_ENDPOINT\"),\n            api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\")\n        )\n        response = client.chat.completions.create(\n            model = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n            messages = [{\"role\": \"user\", \"content\": prompt}],\n            max_tokens = 1024,\n            temperature = 0.95\n        )\n    except Exception as e:\n        print(f\"error: {e}\")\n        response = None\n    return response\n\nres = send_prompt(\"What is Docker?\")\nif res:\n    model_dump = res.model_dump()\n    print({\"response\": model_dump['choices'][0]['message']['content']})<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5fdc\u7b54\u304c\u8fd4\u3063\u3066\u304f\u308b\u307e\u3067\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u300c\u672c\u5f53\u306b\u5927\u4e08\u592b\u306a\u306e\u304b\u306a\uff1f\u300d\u3068\u5fc3\u914d\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002\u30a6\u30a7\u30d6\u306a\u3089\u5f85\u3061\u306e\u3068\u304d\u306b\u3001\u6b21\u306e\u3088\u3046\u306a\u30af\u30eb\u30af\u30eb\uff08spinner\u3068\u3044\u3046\u3089\u3057\u3044\uff1f\uff09\u3092\u51fa\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u2026\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"291\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/Loading_icon.gif\" alt=\"\" class=\"wp-image-75633\"\/><\/figure>\n\n\n\n<p><a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:Loading_icon.gif\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/commons.wikimedia.org\/wiki\/File:Loading_icon.gif<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">yaspin: Yet Another Terminal Spinner for Python<\/h2>\n\n\n\n<p>\u305d\u3053\u3067 <a href=\"https:\/\/pypi.org\/project\/yaspin\/\" target=\"_blank\" rel=\"noreferrer noopener\">yaspin<\/a> \u306e\u51fa\u756a\u3067\u3059\u3002\u6b21\u306e\u3088\u3046\u306a\u51e6\u7406\u5f85\u3061\u306e\u30af\u30eb\u30af\u30eb\u3092\u7c21\u5358\u306b\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"350\" height=\"70\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif\" alt=\"\" class=\"wp-image-75634\"\/><\/figure>\n\n\n\n<p>\u6b21\u304c\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import time\nfrom yaspin import yaspin\n\nwith yaspin(text=\"Processing\", color=\"yellow\") as spinner:\n    time.sleep(5)\n    spinner.ok(\"&#x2705; \")<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b5\u79d2\u9593\u30af\u30eb\u30af\u30eb\u3057\u3066\u304b\u3089\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"404\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/yaspin-sample.gif\" alt=\"\" class=\"wp-image-75635\"\/><\/figure>\n\n\n\n<p>\u3067\u306f\u65e9\u901fyaspin\u3092\u5148\u306eAzure OpenAI\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import os\nfrom yaspin import yaspin\nfrom openai import AzureOpenAI\nfrom dotenv import load_dotenv\nload_dotenv()\n\ndef send_prompt(prompt):\n    response = None\n    with yaspin(text=\"Processing\", color=\"yellow\") as spinner:\n      try:\n        client = AzureOpenAI(\n            api_key = os.getenv(\"AZURE_OPENAI_API_KEY\"),\n            azure_endpoint = os.getenv(\"AZURE_OPENAI_ENDPOINT\"),\n            api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\")\n        )\n        response = client.chat.completions.create(\n            model = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n            messages = [{\"role\": \"user\", \"content\": prompt}],\n            max_tokens = 1024,\n            temperature = 0.95\n        )\n        spinner.ok(\"&#x2705; \")\n      except Exception as e:\n        print(f\"error: {e}\")\n        response = None\n        spinner.fail(\"&#x1f4a5; \")\n    return response\n\nres = send_prompt(\"What is Docker?\")\nif res:\n    model_dump = res.model_dump()\n    print({\"response\": model_dump['choices'][0]['message']['content']})<\/pre>\n\n\n\n<p>\u5dee\u5206\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--- 10__simple.py    2024-10-28 14:43:36.765549180 +0900\n+++ 11__yaspin.py    2024-10-28 17:26:28.336770580 +0900\n@@ -1,13 +1,15 @@\n #!python3\n\n import os\n+from yaspin import yaspin\n from openai import AzureOpenAI\n from dotenv import load_dotenv\n load_dotenv()\n\n def send_prompt(prompt):\n     response = None\n-    try:\n+    with yaspin(text=\"Processing\", color=\"yellow\") as spinner:\n+      try:\n         client = AzureOpenAI(\n             api_key = os.getenv(\"AZURE_OPENAI_API_KEY\"),\n             azure_endpoint = os.getenv(\"AZURE_OPENAI_ENDPOINT\"),\n@@ -19,9 +21,11 @@\n             max_tokens = 1024,\n             temperature = 0.95\n         )\n-    except Exception as e:\n+        spinner.ok(\"&#x2705; \")\n+      except Exception as e:\n         print(f\"error: {e}\")\n         response = None\n+        spinner.fail(\"&#x1f4a5; \")\n     return response\n\n res = send_prompt(\"What is Docker?\")<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u51e6\u7406\u5f85\u3061\u4e2d\u306f\u30af\u30eb\u30af\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"404\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/yaspin-azureopenai.gif\" alt=\"\" class=\"wp-image-75636\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p><a href=\"https:\/\/pypi.org\/project\/yaspin\/\" target=\"_blank\" rel=\"noreferrer noopener\">yaspin<\/a>\u3092\u4f7f\u3046\u3068\u3001\u51e6\u7406\u5f85\u3061\u4e2d\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5358\u7d14\u306a\u30af\u30eb\u30af\u30eb\u3060\u3051\u3067\u306a\u304f\u3001\u3044\u304f\u3064\u304b\u7a2e\u985e\u304c\u3042\u308b\u306e\u3067\u304a\u597d\u307f\u3067\u4f7f\u3044\u5206\u3051\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 \u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u5fdc\u7b54\u304c\u8fd4\u3063\u3066\u304f\u308b\u307e\u3067\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u306e\u3067\u300c\u672c\u5f53\u306b\u5927\u4e08\u592b\u306a\u306e\u304b\u306a\uff1f\u300d\u3068\u5fc3\u914d\u306b\u306a\u3063\u3066\u304d\u307e\u3059 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":75634,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[779,58,817,31,1004,323,16],"tags":[],"class_list":["post-75632","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-azure","category-chatgpt-ai","category-higuchi","category-llm","category-python","category-author"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python, \u8457\u8005\uff08Author\uff09 |\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 import os from\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python, \u8457\u8005\uff08Author\uff09 |\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 import os from\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T05:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-07T08:52:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"70\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python\",\"datePublished\":\"2024-11-01T05:30:00+00:00\",\"dateModified\":\"2024-11-07T08:52:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632\"},\"wordCount\":31,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/basic_example.gif\",\"articleSection\":[\"AI\",\"Azure\",\"ChatGPT\uff06AI\",\"d-higuchi\",\"LLM\",\"Python\",\"\u8457\u8005\uff08Author\uff09\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632\",\"name\":\"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/basic_example.gif\",\"datePublished\":\"2024-11-01T05:30:00+00:00\",\"dateModified\":\"2024-11-07T08:52:43+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python, \u8457\u8005\uff08Author\uff09 |\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 import os from\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/basic_example.gif\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/basic_example.gif\",\"width\":350,\"height\":70},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/75632#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8457\u8005\uff08Author\uff09\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"d-higuchi\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python, \u8457\u8005\uff08Author\uff09 |\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 import os from","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:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632","og_locale":"ja_JP","og_type":"article","og_title":"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python, \u8457\u8005\uff08Author\uff09 |\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 import os from","og_url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2024-11-01T05:30:00+00:00","article_modified_time":"2024-11-07T08:52:43+00:00","og_image":[{"width":350,"height":70,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif","type":"image\/gif"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python","datePublished":"2024-11-01T05:30:00+00:00","dateModified":"2024-11-07T08:52:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632"},"wordCount":31,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif","articleSection":["AI","Azure","ChatGPT\uff06AI","d-higuchi","LLM","Python","\u8457\u8005\uff08Author\uff09"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632","name":"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif","datePublished":"2024-11-01T05:30:00+00:00","dateModified":"2024-11-07T08:52:43+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python, \u8457\u8005\uff08Author\uff09 |\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8 \u6b21\u306e\u3088\u3046\u306a Azure OpenAI \u306b\u554f\u3044\u5408\u308f\u305b\u308b\u7c21\u5358\u306aPython\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 import os from","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/10\/basic_example.gif","width":350,"height":70},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/75632#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u8457\u8005\uff08Author\uff09","item":"https:\/\/www.creationline.com\/tech-blog\/author"},{"@type":"ListItem","position":3,"name":"d-higuchi","item":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"},{"@type":"ListItem","position":4,"name":"\u5c0f\u30cd\u30bf\uff1ayaspin\u3067\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30af\u30eb\u30af\u30eb\u3092\u51fa\u305d\u3046 #ai #azure #openai #llm #python"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=75632"}],"version-history":[{"count":1,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75632\/revisions"}],"predecessor-version":[{"id":75637,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75632\/revisions\/75637"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/75634"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=75632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=75632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=75632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}