<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hatakazu93</author_name>
  <author_url>https://blog.hatena.ne.jp/hatakazu93/</author_url>
  <blog_title>エンジニアリングとお金の話</blog_title>
  <blog_url>https://hatakazu.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>先日OpenAI DevDayで発表があったresponse_formatを早速使用してみました｡ response_formatはプロンプトにjson形式を指定することで出力がJSON形式に固定されるモードになります｡使い方は簡単で以下条件を満たせばOKです｡ モデルをgpt-4-1106-previewかgpt-3.5-turbo-1106にする systemプロンプトにjson形式で出力することを記載する パタメータにresponse_format={ &quot;type&quot;: &quot;json_object&quot; }を追加する 今まではjson形式で出力を行う時はfunction_callingを使用して…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhatakazu.hatenablog.com%2Fentry%2F2023%2F11%2F08%2F103749&quot; title=&quot;response_formatとfunction_callingのjson出力の違いについて - エンジニアリングとお金の話&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-11-08 10:37:49</published>
  <title>response_formatとfunction_callingのjson出力の違いについて</title>
  <type>rich</type>
  <url>https://hatakazu.hatenablog.com/entry/2023/11/08/103749</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
