OpenAI Function Calling: Structured Data from GPT is Now Much Simpler

Поделиться
HTML-код
  • Опубликовано: 28 авг 2024

Комментарии • 6

  • @blwatson
    @blwatson Год назад +1

    Great video and helpful to understand the new functionally. One free tip for you. Alt + z when in vscode. It will autowrap your editor window. This has made my life so much easier with embedded prompts in Python files.

    • @IanWootten
      @IanWootten  Год назад +1

      Ooh, good tip - will be using that.

  • @julian-fricker
    @julian-fricker Год назад

    Thanks for the video. One small tip, if you know you really want it to call your function then replace function_call="auto" with function_call="get_tracklist". You can specify a certain function, auto or none, this is useful in a chat situation where you might want to control flow and not leave it up to chat-gpt.

    • @IanWootten
      @IanWootten  Год назад

      Thanks for highlighting this Julian.

  • @mtanusri9031
    @mtanusri9031 Год назад

    hay ian plzzz could tell meh how you formated the object!! .......... it always returns object with unecessary /n and spaces

    • @IanWootten
      @IanWootten  Год назад

      It returns the json as a string, so you'd need to parse it using the json package.