<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>acro-iizumi</author_name>
  <author_url>https://blog.hatena.ne.jp/acro-iizumi/</author_url>
  <blog_title>Taste of Tech Topics</blog_title>
  <blog_url>https://acro-engineer.hatenablog.com/</blog_url>
  <categories>
    <anon>生成AI</anon>
    <anon>OpenAI</anon>
  </categories>
  <description>こんにちは。新人エンジニアの飯棲です。本記事ではGPT-5で新しく導入された新しいパラメータの一つであるCFGについて紹介します。 CFGはLark文法や正規表現によってモデルの回答の出力形式を制限できる便利な機能です。 1. はじめに 2. GPT-5の新機能、CFGパラメータについて 1. 何ができるか 2. 注意事項 3. 試してみる 1. 今回やること 2. Lark文法を定義する 3. CFGに設定してGPT-5を実行する 4. 色々なパターンを試す シンプルなパターン 複雑なパターン 逸脱したパターン 4. まとめ 1. はじめに GPT-5からはリクエスト時に指定できるパラメータ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Facro-engineer.hatenablog.com%2Fentry%2F2025%2F09%2F22%2F120000&quot; title=&quot;GPT-5の出力形式をCFGを使って強制する - Taste of Tech Topics&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/acro-iizumi/20250922/20250922101331.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-09-22 12:00:00</published>
  <title>GPT-5の出力形式をCFGを使って強制する</title>
  <type>rich</type>
  <url>https://acro-engineer.hatenablog.com/entry/2025/09/22/120000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
