Unreal Engine 中 OpenAI Api 的集成
The OpenAIApi Plugin gives you access to the OpenAI API in Unreal Engine. It is compatible with 4.26, 4.27, 5.0, 5.1, 5.2, and 5.3
This is a community Plugin. No affiliation with OpenAI
The recommended way to install the plugin is to use pre-built binaries.
Plugins folder under your project folderYourProject/Plugins/OpenAIAPISee Video
NOTE: This tutorial is out of date. Updating it soon to show how you can use this plugin to: Generate images at runtime using
DALL·E 2. Transcribe speech in any language usingWhisper v2-large. Use the chat endpoint to power an NPC withGPT-4andGPT-3.5-Turbo.
There are two ways to set the Api Key
Assign the Api key directly in blueprints.
Set the Api Key as an environment variable
ADVICE: Pay attention to security and encrypt your assets before packaging.
ADVICE: Create the environment variable
OPENAI_API_KEYand use your Api key as the value.
engine, prompt, and settings.NOTE: Async nodes can only be called from a blueprint's
Event Graph.
Request body parameters.NOTE: The extra parameter
Start Sequenceinjects text at the beginning of your prompt.
streamwill be supported soon
completion or choiceThis example shows OpenAI's OpenAI's completions endpoint in blueprints. (GPT-3)
This example show you how to use OpenAI's chat endpoint in blueprints. (GPT-4 / GPT-3.5-Turbo)
This example shows you how to generate a 1024x1024 image using DALL·E 2 in blueprints.
This example shows you how to record and transcribe speech using Whisper v2-Large in blueprints.
Windows, Mac, Android
暂无开放 Issues,或尚未同步最近议题。