🐦 Twitter Post Details

Viewing enriched Twitter post

@ivanleomk

Seems like the docs for the responses api by @OpenAI is wrong. Forced function calling doesn't work at all with this syntax. If you look at the latest version of your code, it should be { "name": "get_weather", "type": "function", } to force a specific function call instead https://t.co/NswUlP4hYr

🔧 Raw API Response

{
  "tweet": {
    "bookmark_count": 4,
    "bookmarked": false,
    "created_at": "Thu Mar 13 15:42:52 +0000 2025",
    "conversation_id_str": "1900210961903940004",
    "display_text_range": [
      0,
      279
    ],
    "entities": {
      "hashtags": [],
      "media": [
        {
          "display_url": "pic.x.com/NswUlP4hYr",
          "expanded_url": "https://x.com/ivanleomk/status/1900210961903940004/photo/1",
          "id_str": "1900210628968468480",
          "indices": [
            280,
            303
          ],
          "media_key": "3_1900210628968468480",
          "media_url_https": "https://pbs.twimg.com/media/Gl7nf9IWUAANM3f.jpg",
          "type": "photo",
          "url": "https://t.co/NswUlP4hYr",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": [
                {
                  "x": 59,
                  "y": 10,
                  "h": 291,
                  "w": 291
                }
              ]
            },
            "medium": {
              "faces": [
                {
                  "x": 44,
                  "y": 7,
                  "h": 219,
                  "w": 219
                }
              ]
            },
            "small": {
              "faces": [
                {
                  "x": 25,
                  "y": 4,
                  "h": 124,
                  "w": 124
                }
              ]
            },
            "orig": {
              "faces": [
                {
                  "x": 59,
                  "y": 10,
                  "h": 291,
                  "w": 291
                }
              ]
            }
          },
          "sizes": {
            "large": {
              "h": 862,
              "w": 1590,
              "resize": "fit"
            },
            "medium": {
              "h": 651,
              "w": 1200,
              "resize": "fit"
            },
            "small": {
              "h": 369,
              "w": 680,
              "resize": "fit"
            },
            "thumb": {
              "h": 150,
              "w": 150,
              "resize": "crop"
            }
          },
          "original_info": {
            "height": 862,
            "width": 1590,
            "focus_rects": [
              {
                "x": 0,
                "y": 0,
                "w": 1539,
                "h": 862
              },
              {
                "x": 0,
                "y": 0,
                "w": 862,
                "h": 862
              },
              {
                "x": 0,
                "y": 0,
                "w": 756,
                "h": 862
              },
              {
                "x": 63,
                "y": 0,
                "w": 431,
                "h": 862
              },
              {
                "x": 0,
                "y": 0,
                "w": 1590,
                "h": 862
              }
            ]
          },
          "media_results": {
            "result": {
              "media_key": "3_1900210628968468480"
            }
          }
        },
        {
          "display_url": "pic.x.com/NswUlP4hYr",
          "expanded_url": "https://x.com/ivanleomk/status/1900210961903940004/photo/1",
          "id_str": "1900210796509929472",
          "indices": [
            280,
            303
          ],
          "media_key": "3_1900210796509929472",
          "media_url_https": "https://pbs.twimg.com/media/Gl7nptRWIAAWAMm.jpg",
          "type": "photo",
          "url": "https://t.co/NswUlP4hYr",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": [
                {
                  "x": 96,
                  "y": 200,
                  "h": 131,
                  "w": 131
                }
              ]
            },
            "medium": {
              "faces": [
                {
                  "x": 96,
                  "y": 200,
                  "h": 131,
                  "w": 131
                }
              ]
            },
            "small": {
              "faces": [
                {
                  "x": 56,
                  "y": 118,
                  "h": 77,
                  "w": 77
                }
              ]
            },
            "orig": {
              "faces": [
                {
                  "x": 96,
                  "y": 200,
                  "h": 131,
                  "w": 131
                }
              ]
            }
          },
          "sizes": {
            "large": {
              "h": 682,
              "w": 1148,
              "resize": "fit"
            },
            "medium": {
              "h": 682,
              "w": 1148,
              "resize": "fit"
            },
            "small": {
              "h": 404,
              "w": 680,
              "resize": "fit"
            },
            "thumb": {
              "h": 150,
              "w": 150,
              "resize": "crop"
            }
          },
          "original_info": {
            "height": 682,
            "width": 1148,
            "focus_rects": [
              {
                "x": 0,
                "y": 0,
                "w": 1148,
                "h": 643
              },
              {
                "x": 32,
                "y": 0,
                "w": 682,
                "h": 682
              },
              {
                "x": 74,
                "y": 0,
                "w": 598,
                "h": 682
              },
              {
                "x": 203,
                "y": 0,
                "w": 341,
                "h": 682
              },
              {
                "x": 0,
                "y": 0,
                "w": 1148,
                "h": 682
              }
            ]
          },
          "media_results": {
            "result": {
              "media_key": "3_1900210796509929472"
            }
          }
        },
        {
          "display_url": "pic.x.com/NswUlP4hYr",
          "expanded_url": "https://x.com/ivanleomk/status/1900210961903940004/photo/1",
          "id_str": "1900210834502037504",
          "indices": [
            280,
            303
          ],
          "media_key": "3_1900210834502037504",
          "media_url_https": "https://pbs.twimg.com/media/Gl7nr6zXsAAsuIK.jpg",
          "type": "photo",
          "url": "https://t.co/NswUlP4hYr",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": []
            },
            "medium": {
              "faces": []
            },
            "small": {
              "faces": []
            },
            "orig": {
              "faces": []
            }
          },
          "sizes": {
            "large": {
              "h": 314,
              "w": 1590,
              "resize": "fit"
            },
            "medium": {
              "h": 237,
              "w": 1200,
              "resize": "fit"
            },
            "small": {
              "h": 134,
              "w": 680,
              "resize": "fit"
            },
            "thumb": {
              "h": 150,
              "w": 150,
              "resize": "crop"
            }
          },
          "original_info": {
            "height": 314,
            "width": 1590,
            "focus_rects": [
              {
                "x": 634,
                "y": 0,
                "w": 561,
                "h": 314
              },
              {
                "x": 757,
                "y": 0,
                "w": 314,
                "h": 314
              },
              {
                "x": 777,
                "y": 0,
                "w": 275,
                "h": 314
              },
              {
                "x": 836,
                "y": 0,
                "w": 157,
                "h": 314
              },
              {
                "x": 0,
                "y": 0,
                "w": 1590,
                "h": 314
              }
            ]
          },
          "media_results": {
            "result": {
              "media_key": "3_1900210834502037504"
            }
          }
        }
      ],
      "symbols": [],
      "timestamps": [],
      "urls": [],
      "user_mentions": [
        {
          "id_str": "4398626122",
          "name": "OpenAI",
          "screen_name": "OpenAI",
          "indices": [
            45,
            52
          ]
        }
      ]
    },
    "extended_entities": {
      "media": [
        {
          "display_url": "pic.x.com/NswUlP4hYr",
          "expanded_url": "https://x.com/ivanleomk/status/1900210961903940004/photo/1",
          "id_str": "1900210628968468480",
          "indices": [
            280,
            303
          ],
          "media_key": "3_1900210628968468480",
          "media_url_https": "https://pbs.twimg.com/media/Gl7nf9IWUAANM3f.jpg",
          "type": "photo",
          "url": "https://t.co/NswUlP4hYr",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": [
                {
                  "x": 59,
                  "y": 10,
                  "h": 291,
                  "w": 291
                }
              ]
            },
            "medium": {
              "faces": [
                {
                  "x": 44,
                  "y": 7,
                  "h": 219,
                  "w": 219
                }
              ]
            },
            "small": {
              "faces": [
                {
                  "x": 25,
                  "y": 4,
                  "h": 124,
                  "w": 124
                }
              ]
            },
            "orig": {
              "faces": [
                {
                  "x": 59,
                  "y": 10,
                  "h": 291,
                  "w": 291
                }
              ]
            }
          },
          "sizes": {
            "large": {
              "h": 862,
              "w": 1590,
              "resize": "fit"
            },
            "medium": {
              "h": 651,
              "w": 1200,
              "resize": "fit"
            },
            "small": {
              "h": 369,
              "w": 680,
              "resize": "fit"
            },
            "thumb": {
              "h": 150,
              "w": 150,
              "resize": "crop"
            }
          },
          "original_info": {
            "height": 862,
            "width": 1590,
            "focus_rects": [
              {
                "x": 0,
                "y": 0,
                "w": 1539,
                "h": 862
              },
              {
                "x": 0,
                "y": 0,
                "w": 862,
                "h": 862
              },
              {
                "x": 0,
                "y": 0,
                "w": 756,
                "h": 862
              },
              {
                "x": 63,
                "y": 0,
                "w": 431,
                "h": 862
              },
              {
                "x": 0,
                "y": 0,
                "w": 1590,
                "h": 862
              }
            ]
          },
          "media_results": {
            "result": {
              "media_key": "3_1900210628968468480"
            }
          }
        },
        {
          "display_url": "pic.x.com/NswUlP4hYr",
          "expanded_url": "https://x.com/ivanleomk/status/1900210961903940004/photo/1",
          "id_str": "1900210796509929472",
          "indices": [
            280,
            303
          ],
          "media_key": "3_1900210796509929472",
          "media_url_https": "https://pbs.twimg.com/media/Gl7nptRWIAAWAMm.jpg",
          "type": "photo",
          "url": "https://t.co/NswUlP4hYr",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": [
                {
                  "x": 96,
                  "y": 200,
                  "h": 131,
                  "w": 131
                }
              ]
            },
            "medium": {
              "faces": [
                {
                  "x": 96,
                  "y": 200,
                  "h": 131,
                  "w": 131
                }
              ]
            },
            "small": {
              "faces": [
                {
                  "x": 56,
                  "y": 118,
                  "h": 77,
                  "w": 77
                }
              ]
            },
            "orig": {
              "faces": [
                {
                  "x": 96,
                  "y": 200,
                  "h": 131,
                  "w": 131
                }
              ]
            }
          },
          "sizes": {
            "large": {
              "h": 682,
              "w": 1148,
              "resize": "fit"
            },
            "medium": {
              "h": 682,
              "w": 1148,
              "resize": "fit"
            },
            "small": {
              "h": 404,
              "w": 680,
              "resize": "fit"
            },
            "thumb": {
              "h": 150,
              "w": 150,
              "resize": "crop"
            }
          },
          "original_info": {
            "height": 682,
            "width": 1148,
            "focus_rects": [
              {
                "x": 0,
                "y": 0,
                "w": 1148,
                "h": 643
              },
              {
                "x": 32,
                "y": 0,
                "w": 682,
                "h": 682
              },
              {
                "x": 74,
                "y": 0,
                "w": 598,
                "h": 682
              },
              {
                "x": 203,
                "y": 0,
                "w": 341,
                "h": 682
              },
              {
                "x": 0,
                "y": 0,
                "w": 1148,
                "h": 682
              }
            ]
          },
          "media_results": {
            "result": {
              "media_key": "3_1900210796509929472"
            }
          }
        },
        {
          "display_url": "pic.x.com/NswUlP4hYr",
          "expanded_url": "https://x.com/ivanleomk/status/1900210961903940004/photo/1",
          "id_str": "1900210834502037504",
          "indices": [
            280,
            303
          ],
          "media_key": "3_1900210834502037504",
          "media_url_https": "https://pbs.twimg.com/media/Gl7nr6zXsAAsuIK.jpg",
          "type": "photo",
          "url": "https://t.co/NswUlP4hYr",
          "ext_media_availability": {
            "status": "Available"
          },
          "features": {
            "large": {
              "faces": []
            },
            "medium": {
              "faces": []
            },
            "small": {
              "faces": []
            },
            "orig": {
              "faces": []
            }
          },
          "sizes": {
            "large": {
              "h": 314,
              "w": 1590,
              "resize": "fit"
            },
            "medium": {
              "h": 237,
              "w": 1200,
              "resize": "fit"
            },
            "small": {
              "h": 134,
              "w": 680,
              "resize": "fit"
            },
            "thumb": {
              "h": 150,
              "w": 150,
              "resize": "crop"
            }
          },
          "original_info": {
            "height": 314,
            "width": 1590,
            "focus_rects": [
              {
                "x": 634,
                "y": 0,
                "w": 561,
                "h": 314
              },
              {
                "x": 757,
                "y": 0,
                "w": 314,
                "h": 314
              },
              {
                "x": 777,
                "y": 0,
                "w": 275,
                "h": 314
              },
              {
                "x": 836,
                "y": 0,
                "w": 157,
                "h": 314
              },
              {
                "x": 0,
                "y": 0,
                "w": 1590,
                "h": 314
              }
            ]
          },
          "media_results": {
            "result": {
              "media_key": "3_1900210834502037504"
            }
          }
        }
      ]
    },
    "favorite_count": 4,
    "favorited": false,
    "full_text": "Seems like the docs for the responses api by @OpenAI  is wrong.\n\nForced function calling doesn't work at all with this syntax. If you look at the latest version of your code, it should be \n\n{\n\"name\": \"get_weather\",\n\"type\": \"function\",\n}\n\nto force a specific function call instead https://t.co/NswUlP4hYr",
    "is_quote_status": false,
    "lang": "en",
    "possibly_sensitive": false,
    "possibly_sensitive_editable": true,
    "quote_count": 0,
    "reply_count": 1,
    "retweet_count": 0,
    "retweeted": false,
    "user_id_str": "267160799",
    "id_str": "1900210961903940004",
    "note_tweet": null
  },
  "user": {
    "__typename": "User",
    "id": "VXNlcjoyNjcxNjA3OTk=",
    "rest_id": "267160799",
    "affiliates_highlighted_label": {},
    "has_graduated_access": true,
    "is_blue_verified": true,
    "profile_image_shape": "Circle",
    "legacy": {
      "can_dm": true,
      "can_media_tag": false,
      "created_at": "Wed Mar 16 12:43:36 +0000 2011",
      "default_profile": false,
      "default_profile_image": false,
      "description": "Full Stack Engineer turned research engineer at 567 Labs. \n\nI used to build UIs now I tinker with LLMs. I write about my experiments at https://t.co/02byZNKMa8.",
      "entities": {
        "description": {
          "urls": [
            {
              "display_url": "ivanleo.com",
              "expanded_url": "http://ivanleo.com",
              "url": "https://t.co/02byZNKMa8",
              "indices": [
                136,
                159
              ]
            }
          ]
        },
        "url": {
          "urls": [
            {
              "display_url": "ivanleo.com",
              "expanded_url": "http://ivanleo.com",
              "url": "https://t.co/02byZNKMa8",
              "indices": [
                0,
                23
              ]
            }
          ]
        }
      },
      "fast_followers_count": 0,
      "favourites_count": 3755,
      "followers_count": 3936,
      "friends_count": 1242,
      "has_custom_timelines": true,
      "is_translator": false,
      "listed_count": 78,
      "location": "Singapore",
      "media_count": 989,
      "name": "Ivan Leo (SF 1 - 19 June )",
      "normal_followers_count": 3936,
      "pinned_tweet_ids_str": [
        "1875777259346509940"
      ],
      "possibly_sensitive": false,
      "profile_banner_url": "https://pbs.twimg.com/profile_banners/267160799/1716692627",
      "profile_image_url_https": "https://pbs.twimg.com/profile_images/1838778744468836353/utYfioiO_normal.jpg",
      "profile_interstitial_type": "",
      "screen_name": "ivanleomk",
      "statuses_count": 5694,
      "translator_type": "none",
      "url": "https://t.co/02byZNKMa8",
      "verified": false,
      "want_retweets": false,
      "withheld_in_countries": []
    },
    "professional": {
      "rest_id": "1524186444708794368",
      "professional_type": "Creator",
      "category": [
        {
          "id": 713,
          "name": "Science & Technology",
          "icon_name": ""
        }
      ]
    },
    "tipjar_settings": {}
  },
  "views": "396"
}