{"author_url":"https://blog.hatena.ne.jp/hiromichinomata/","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Ruby","\u6a5f\u68b0\u5b66\u7fd2"],"width":"100%","blog_title":"algonote","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/h/hiromichinomata/20260409/20260409033136.png","published":"2026-04-09 03:32:46","provider_url":"https://hatena.blog","blog_url":"https://ja.algonote.com/","version":"1.0","url":"https://ja.algonote.com/entry/yukkuri-rubyllm","type":"rich","author_name":"hiromichinomata","description":"\u3086\u3063\u304f\u308a\u3057\u3066\u3044\u3063\u3066\u306d! \ud83d\udfe6 Chapter 1: RubyLLM\u306e\u5168\u4f53\u50cf\u3092\u63b4\u3080 1.1 RubyLLM\u3068\u306f\u4f55\u304b\uff08\u4f55\u3092\u89e3\u6c7a\u3059\u308b\u306e\u304b\uff09 \ud83e\udde0 \u5c0e\u5165 \u970a\u5922\u300c\u6700\u8fd1\u3055\u3001Ruby\u3067AI\u3084\u308d\u3046\u3068\u3059\u308b\u3068\u7d50\u69cb\u3081\u3093\u3069\u304f\u3055\u304f\u306a\u3044\uff1f\u300d \u9b54\u7406\u6c99\u300c\u308f\u304b\u308b\u3002API\u53e9\u304f\u3060\u3051\u3067\u3082\u6bce\u56de\u3053\u3046\u3044\u3046\u30b3\u30fc\u30c9\u66f8\u304f\u3088\u306a\u300d require \"net/http\" require \"json\" uri = URI(\"https://api.openai.com/v1/chat/completions\") req = Net::HTTP::Post.new(uri) req[\"Authorization\"] = \"Bearer #{ENV['OPEN\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fja.algonote.com%2Fentry%2Fyukkuri-rubyllm\" title=\"\u3086\u3063\u304f\u308aRubyLLM - algonote\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","title":"\u3086\u3063\u304f\u308aRubyLLM"}