Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 19, 2025

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 19, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 19, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 19, 2025

      My latest hands-on could be the best value AI laptop of the summer, but I still have questions

      May 19, 2025

      DOOM: The Dark Ages had the lowest Steam launch numbers in series history — Is it suffering from the ‘Game Pass Effect’?

      May 19, 2025

      Microsoft won’t be left exposed if something “catastrophic” happens to OpenAI — but may still be 3 to 6 months behind ChatGPT

      May 19, 2025

      Microsoft Copilot gets OpenAI’s GPT-4o image generation support — but maybe a day late and a dollar short for the hype?

      May 19, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      ES6: Set Vs Array- What and When?

      May 19, 2025
      Recent

      ES6: Set Vs Array- What and When?

      May 19, 2025

      Transform JSON into Typed Collections with Laravel’s AsCollection::of()

      May 19, 2025

      Deployer

      May 19, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      My latest hands-on could be the best value AI laptop of the summer, but I still have questions

      May 19, 2025
      Recent

      My latest hands-on could be the best value AI laptop of the summer, but I still have questions

      May 19, 2025

      DOOM: The Dark Ages had the lowest Steam launch numbers in series history — Is it suffering from the ‘Game Pass Effect’?

      May 19, 2025

      Microsoft won’t be left exposed if something “catastrophic” happens to OpenAI — but may still be 3 to 6 months behind ChatGPT

      May 19, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»OpenAI adds support for Structured Outputs for JSON in its API

    OpenAI adds support for Structured Outputs for JSON in its API

    August 7, 2024

    OpenAI is updating its API with support for Structured Outputs to ensure that the outputs of its models match the JSON Schemas provided by developers. 

    According to OpenAI, one of the core use cases for AI today is the ability to generate structured data from unstructured inputs, but previously, developers needed to utilize open source tools, specific prompts, or just retry requests until it matched the format they were looking for. 

    Structured Outputs will make this process easier by forcing the models to match the schema provided by the developers. 

    Some sample use cases for using Structured Outputs include generating UIs based on user intent, separating an answer from its supporting reasoning or commentary, or extracting structured data from unstructured sources, like meeting notes or to-do lists. 

    Developers can access this new functionality one of two ways. First they can set strict: true under the tool definition when writing function calls. The second option is to supply a JSON Schema using the new json_schema option in the response_format parameter. This second option is ideal for situations where the model is responding to a user rather than calling a tool.

    OpenAI said that Structured Outputs follow the company’s existing safety policies, enabling the models to continue refusing unsafe requests when using this feature.

    Structured Outputs is generally available in the API now. In addition, OpenAI’s Python and Node SDKs have both been updated with native support for this new functionality. 

    You may also like…

    Data scientists and developers need a better working relationship for AI

    How to maximize your ROI for AI in software development

    The post OpenAI adds support for Structured Outputs for JSON in its API appeared first on SD Times.

    Source: Read More 

    news
    Facebook Twitter Reddit Email Copy Link
    Previous ArticlepgEdge introduces advanced logical replication features in v24.7
    Next Article A New String Helper, Assert Enums in AssertableJson, and more in Laravel 11.20

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 19, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4915 – PHPGurukul Auto Taxi Stand Management System SQL Injection

    May 19, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Pen Testing for Compliance Only? It’s Time to Change Your Approach

    Development

    Chrome Incognito getting faster at cost of Privacy

    Operating Systems

    PowerWash Simulator 2 is on the way, and it’s coming sooner than you think

    News & Updates

    Revealing the UTG-Q-010 Campaign: A Deep Dive into Cryptocurrency Lures and Pupy RAT

    Development

    Highlights

    Development

    Sitecore XM Cloud: The SaaS Advantage and What It Means for Your Digital Roadmap

    February 25, 2025

    The digital experience landscape is evolving rapidly, and businesses are under increasing pressure to deliver…

    The Environmental Impact of AI: Unveiling Its Hidden Costs

    February 6, 2025

    Meta AI Releases OpenEQA: The Open-Vocabulary Embodied Question Answering Benchmark

    April 14, 2024

    CVE-2025-20154 – Cisco TWAMP Server Out-of-Bounds Array Access Denial of Service Vulnerability

    May 7, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.