OpenAI和对话系统为Unity用户指南

Copyright © Pixel Crushers
Table of Contents Introduction (2)
We’re Here to Help (2)
Quick Start (2)
OpenAI and the Dialogue System for Unity (2)
Language Models (3)
ElevenLabs Speech Synthesis (3)
Dialogue Smith (4)
Welcome Window (5)
Main Window (6)
Generate Conversation (7)
Revise Text (9)
Translate Field (11)
Translate Database (12)
Freeform Chat (13)
Generate Portraits (15)
ElevenLabs V oiceover Audio Generation (17)
Dialogue Smith Integration (20)
Runtime Dialogue (23)
Questions? Feature Suggestions? (27)
Introduction
Thank you for supporting the Dialogue System for Unity and the Addon for OpenAI! This addon requires the Dialogue System for Unity. Using the Dialogue System Addon for OpenAI, you can use OpenAI’s generative AI to write narrative content faster, get suggestions when you’re stuck, fix spelling and grammar, and translate your text to other languages. You can also use the addon for freeform chat similar to ChatGPT, generate portraits using DALL-E, and voiceover using ElevenLabs. We want your project to be a success! If you have any questions or feature requests, please contact us any time at *************************.
We’re Here to Help
•Email: *************************
•Forum: pixelcrushers/phpbb
•Discord: /FwUaCNt
•Web: Tools → Pixel Crushers → Dialogue System → Help → Report a Bug
Quick Start
•Read the documentation and/or watch the tutorial videos.
•Import the Dialogue System for Unity into your project.
•Import the Dialogue System Addon for OpenAI into your project.
•The addon’s Welcome window will appear. Configure the addon to proceed.
•Click the OpenAI Addon Window button in the Welcome window or the AI buttons in the Dialogue System’s Dialogue Editor window.
OpenAI and the Dialogue System for Unity
OpenAI is an AI research company best known for technology designed to generate human-like language, in particular using a language model called Generative Pre-trained Transformer, or GPT. O
penAI has a public API that applications such as the Dialogue System Addon for OpenAI can use to leverage the power of its language models. Modest charges for the use of the API are handled through an API key that you can create on OpenAI’s website. (OpenAI Pricing) The Dialogue System Addon’s Welcome window will step you through the process if you don’t already have an API key.
The Dialogue System Addon for OpenAI is a third party product (i.e., not affiliated with OpenAI) that allows you to leverage the OpenAI API to enhance your content creation. It’s designed to work seamlessly with the Dialogue System for Unity.
Note: Language models are not sentient. They are essentially just very advanced pattern matchers. Results may contain grammatical or factual errors, so review them carefully before using them.
Language Models
The OpenAI API provides access to several language models and parameters. In the Dialogue System Addon, the UIs to specify language models and parameters look like this:
acceptlanguage
Model: This dropdown allows you to choose a language model for content generation:
Model Description
GPT_3_5_Turbo Best for most cases. Similar performance to Davinci at 10% of the price. GPT_3_5_Turbo_16K Same as GPT-3.5 Turbo but with 4x the context window for longer responses. GPT_4Newest, most powerful language model. Improves on GPT-3.5.
GPT_4_32K GPT-4 with larger 32k context window that allows for very long responses. Davinci Powerful model but slow. Good at complex intent and cause & effect. Curie: Second most powerful model. Good at language translation.
Babbage Second fastest model. Good at classification.
Ada Smallest, fastest, and least expensive model, but results may be poor. Temperature: Specifies the amount of “randomness” to include in the content. A value of zero generates plain, straightforward responses. A value of one generates more unexpected or “creative” responses.
Max Tokens: Specifies the maximum number of tokens to spend on a response. Lower numbers generate shorter responses; higher numbers can generate longer responses. OpenAI pricing is base
d on the number of tokens used, so you can use this slider to reduce expenses.
ElevenLabs Speech Synthesis
You can use the API provided by ElevenLabs, a separate company from OpenAI that specializes in speech synthesis, to generate voiceover audio for your dialogue.
ElevenLabs uses a separate API key. Any charges for using the API are applied to your API key account. (See Pricing.)
You can use the addon’s ElevenLabs features to generate audio at design time and at runtime.
Dialogue Smith
You can also use the API provided by Dialogue Smith, a separate company from OpenAI that specializes in advanced dialogue generation, to fill in dialogue for branching conversation trees. Dialogue Smith uses a separate API key. Any charges for using the API are applied to your API key account.
Welcome Window
Use menu item Tools → Pixel Crushers →Dialogue System → Addon for OpenAI → Welcome Window to open the Welcome window.
The Addon for OpenAI will use your OpenAI API key, which you can create on OpenAI’s website. You are responsible for any usage charges that OpenAI applies to your API key.
You can use the Welcome window to create and enter an OpenAI API key, and to open the Main Window.

本文发布于:2024-09-22 12:56:04,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/370760.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议