OpenAI¤¬JSON½ÐÎϤκݤË100¡ó¤ÎÀºÅÙ¤ÇÆÃÄê¤Î¥¹¥¡¼¥Þ¤Ë½¾¤ï¤»¤ëµ¡Ç½¤ò¥ê¥ê¡¼¥¹
AI¤Ë¥Ç¡¼¥¿¤ò¹½Â¤²½¤µ¤»¤ëºÝ¤Ë¡¢»ØÄꤷ¤¿¥¹¥¡¼¥Þ¤Ë³Î¼Â¤Ë½¾¤ï¤»¤ë¤³¤È¤¬²Äǽ¤Ê¥â¡¼¥É¤òOpenAI¤¬¥ê¥ê¡¼¥¹¤·¤Þ¤·¤¿¡£
Introducing Structured Outputs in the API | OpenAI
https://openai.com/index/introducing-structured-outputs-in-the-api/
¹½Â¤²½¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ç¡¼¥¿¤òÆɤ߼è¤ê¡¢¹½Â¤²½¤µ¤ì¤¿¥Ç¡¼¥¿¤ò½ÐÎϤ¹¤ë¤Î¤ÏAI¤Î¼çÍפʥ桼¥¹¥±¡¼¥¹¤Î°ì¤Ä¤Ç¤¹¡£¤³¤ì¤Þ¤Ç¤âOpenAI¤ÎAPI¤Ç¤Ï¡ÖJSON¥â¡¼¥É¡×¤È¤¤¤¦ÀßÄ꤬¸ºß¤·¤Æ¤ª¤ê¡¢»ØÄꤷ¤¿¹½Â¤¤ò»ý¤ÄJSON¤òAI¤Ë½ÐÎϤµ¤»¤ë¤³¤È¤¬²Äǽ¤Ç¤·¤¿¤¬¡¢É¬¤º¤·¤â»ØÄꤷ¤¿¹½Â¤Ä̤ê¤Î¥Ç¡¼¥¿¤¬½ÐÎϤµ¤ì¤ë¤È¤Ï¸Â¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£
º£²ó¤Îµ¡Ç½¤òÍøÍѤ¹¤ëÊýË¡¤Ï2¤Ä¡£1¤ÄÌܤϡÖtools¡×¤òÍøÍѤ·¤¿´Ø¿ô¸Æ¤Ó½Ð¤·¤ÎºÝ¤Ë¡Ö"strict": true¡×¤ÈÀßÄꤹ¤ëÊýË¡¤Ç¡¢gpt-4-0613¤ª¤è¤Ógpt-3.5-turbo-0613°Ê¹ß¤ÎÁ´¤Æ¤Î¥â¥Ç¥ë¤ÇÍøÍѲÄǽ¤Ç¤¹¡£
2¤ÄÌܤϺ£²ó¿·¤¿¤ËÍøÍѲÄǽ¤Ë¤Ê¤Ã¤¿¡Öresponse_format¡×¤Î¥ª¥×¥·¥ç¥ó¤Ç¡Öjson_schema¡×¤òÀßÄꤹ¤ëÊýË¡¤Ç¤¹¡£¤³¤Á¤é¤Ïgpt-4o-2024-08-06¥â¥Ç¥ë¤ª¤è¤Ógpt-4o-mini-2024-07-18¥â¥Ç¥ë¤Ë¤ÆÍøÍѲÄǽ¤È¤Î¤³¤È¡£
¤Ê¤ª¡¢¥â¥Ç¥ë¤¬°ÂÁ´¤Ç¤Ï¤Ê¤¤¥ê¥¯¥¨¥¹¥È¤È¤·¤Æ±þÅú¤ÎÀ¸À®¤òµñÈݤ·¤¿¾ì¹ç¡¢±þÅú¤Î¡Örefusal¡×¤È¤¤¤¦¹àÌܤ˵ñÈݤ·¤¿¤³¤È¤¬µºÜ¤µ¤ì¤ë¤¿¤á¡¢»ØÄꤷ¤¿Ä̤ê¤Î¹½Â¤²½¥Ç¡¼¥¿¤¬À¸À®¤µ¤ì¤Ê¤«¤Ã¤¿¤³¤È¤ò¥×¥í¥°¥é¥à¤«¤é¤¹¤°¤ËȽÊ̤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¤½¤Î¾¡¢¥È¡¼¥¯¥ó¿ô¤ÎÀ©¸Â¤ËÅþ㤷¤¿¾ì¹ç¤Ê¤É¼Â¹Ô¤¬ÅÓÃæ¤ÇÄä»ß¤·¤¿¾ì¹ç¤Ë¤â»ØÄꤷ¤¿¹½Â¤²½¥Ç¡¼¥¿¤¬½ÐÎϤµ¤ì¤Ê¤¤¾ì¹ç¤¬¤¢¤ë¤È¤Î¤³¤È¡£¤Þ¤¿¡¢ÊÂÎó´Ø¿ô¸Æ¤Ó½Ð¤·¤¬ÍøÍѤǤ¤Ê¤«¤Ã¤¿¤ê¡¢ºÇ½é¤ÎAPI±þÅú¤ËÄɲäΥ쥤¥Æ¥ó¥·¤¬È¯À¸¤¹¤ë¤Ê¤É¤ÎÀ©¸Â¤â¸ºß¤·¤Æ¤¤¤Þ¤¹¡£
½¾Íè¥â¥Ç¥ë¤Îgpt-4o-2024-05-13¤«¤éº£²ó¥ê¥ê¡¼¥¹¤µ¤ì¤¿gpt-4o-2024-08-06¥â¥Ç¥ë¤ËÀÚ¤êÂؤ¨¤ë¤³¤È¤Ç¡¢ÆþÎϥȡ¼¥¯¥ó¿ô¤Ë±þ¤¸¤¿ÎÁ¶â¤¬È¾³Û¤Î¡Ö100Ëü¥È¡¼¥¯¥óÅö¤¿¤ê2.5¥É¥ë(Ìó366±ß)¡×¤Ë¤Ê¤ê¡¢½ÐÎϥȡ¼¥¯¥ó¿ô¤Ë±þ¤¸¤¿ÎÁ¶â¤¬33¡ó¥ª¥Õ¤Î¡Ö100Ëü¥È¡¼¥¯¥óÅö¤¿¤ê10¥É¥ë(Ìó1460±ß)¡×¤Ë¤Ê¤ë¤È¤Î¤³¤È¤Ç¤¹¡£