【ChatGPT】APIでGPT4-turboが使えるようになったらしい

こんにちは、フリーランスエンジニアの太田雅昭です。

GPT4-turbo プレビュー版が公開された

本日2023/11/07の朝、OpenAIからこんなメールが来ました。

New GPT-4 Turbo:

  • We announced GPT-4 Turbo, our most advanced model. It offers a 128K context window and knowledge of world events up to April 2023. 
  • We’ve reduced pricing for GPT-4 Turbo considerably: input tokens are now priced at $0.01/1K and output tokens at $0.03/1K, making it 3x and 2x cheaper respectively compared to the previous GPT-4 pricing. 
  • We’ve improved function calling, including the ability to call multiple functions in a single message, to always return valid functions with JSON mode, and improved accuracy on returning the right function parameters.
  • Model outputs are more deterministic with our new reproducible outputs beta feature.
  • You can access GPT-4 Turbo by passing gpt-4-1106-preview in the API, with a stable production-ready model release planned later this year.

これによると、ついにGPT4-turboのプレビュー版が公開されたとのことです。これまでもGPT4-32kがドキュメントに記載されていたのですが、なぜかAPIでは使えませんでした(理由は未だよく分からない)

今回使えるようになったとされるGPT4-turboは、主に以下のような特徴があります。

  • とりあえず安い
  • 2023年4月までの情報が格納されている
  • そのほかFunction機能、JSONモードに加え、新しいベータ版のReproducible Outputs機能がある

分かりやすいのは情報が新しくなっていることと、価格が安くなっていることですね。インプットトークン、アウトプットトークンそれぞれで3倍、2倍ほど安いそうです。

画像などのマルチメディアに対応

さらにマルチメディアに対応したそうです。

Multimodal capabilities:

  • GPT-4 Turbo now supports visual inputs in the Chat Completions API, enabling use cases like caption generation and visual analysis. You can access the vision features by using the gpt-4-vision-preview model. This vision capability will be integrated into the production-ready version of GPT-4 Turbo when it comes out of preview later this year.
  • You can also integrate DALL·E 3 for image generation into your applications via the Image generation API.
  • We released text-to-speech capabilities through the newly introduced TTS model, which will read text for you using one of six natural sounding voices.

こちらはOpenAIサイト提供のユーザーインターフェース上で使用できていた、画像などの読み込み機能がAPIで使えるようになったとのことです。APIでできることが大幅に増えることは間違い無いです。

使用方法

GPT-4-turboのプレビューを使用するには、gpt-4-1106-previewモデルを指定すると良いようです。

GPTs機能

他にも気になる機能があります。GPTsという機能のようです。

Customizable GPTs in ChatGPT:

  • We launched a new feature called GPTs. GPTs combine instructions, data, and capabilities into a customized version of ChatGPT. 
  • In addition to the capabilities built by OpenAI such as DALL·E or Advanced Data Analysis, GPTs can call developer-defined actions as well. GPTs let developers control a larger portion of experience. We purposefully architected plugins and actions very similarly, and it takes only a few minutes to turn an existing plugin into an action. Read the docs for details.

これによると、開発者が指定したアクションを実行するようです。GPTsという名前をつけているあたり、かなり大きな機能のように思えます。

最後に

今回、ひとまず走り書きで新しい情報を紹介させていただきました。ではでは。