
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
OpenAI APIのFunction callingと自作のプロンプトを比較してみる
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
OpenAI APIのFunction callingと自作のプロンプトを比較してみる
OpenAIの06/13のアップデートで関数呼び出しに対応したFunction Calling機能が入りました。 これはJSON ... OpenAIの06/13のアップデートで関数呼び出しに対応したFunction Calling機能が入りました。 これはJSON Schema形式で関数を定義し、その関数の呼び出しに必要な情報を返してくれる機能になります。 import openai import json # Example dummy function hard coded to return the same weather # In production, this could be your backend API or an external API def get_current_weather(location, unit="fahrenheit"): """Get the current weather in a given location""" weather_info = { "location":