Unity 工具 之 Azure OpenAI 功能接入到Unity 中的简单整理的案例项目源码

上传者: u014361280 | 上传时间: 2024-03-13 09:43:06 | 文件大小: 3.8MB | 文件类型: 7Z
​Unity 工具 之 Azure OpenAI 功能接入到Unity 中的简单整理的案例项目 一、简单介绍 Unity 工具类,自己整理的一些游戏开发可能用到的模块,单独独立使用,方便游戏开发。 本节介绍,这里在使用微软的Azure 把Azue.AI.OpenAI 接入到Unity中,在Unity中直接调用 Azue.AI.OpenAI 接口函数,实现简单聊天功能,这里简单说明,如果你有更好的方法,欢迎留言交流。 二、实现原理 1、官网申请得到Azure OpenAI 对应的 AZURE_OPENAI_ENDPOINT 和 AZURE_OPENAI_KEY,以及对应的模型名 DeploymentOrModelName 2、把相关的 dll 引入进来,主要有 Azure.AI.OpenAI、 Azure.Core 等等 3、创建客户端 OpenAIClient = new(new Uri(AZURE_OPENAI_ENDPOINT ), new AzureKeyCredential(AZURE_OPENAI_KEY));

文件下载

资源详情

[{"title":"( 341 个子文件 3.8MB ) Unity 工具 之 Azure OpenAI 功能接入到Unity 中的简单整理的案例项目源码","children":[{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"_._ <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ProjectSettings.asset <span style='color:#111;'> 21.63KB </span>","children":null,"spread":false},{"title":"QualitySettings.asset <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"InputManager.asset <span style='color:#111;'> 5.66KB </span>","children":null,"spread":false},{"title":"GraphicsSettings.asset <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"Physics2DSettings.asset <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"NavMeshAreas.asset <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"MemorySettings.asset <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"DynamicsManager.asset <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"EditorSettings.asset <span style='color:#111;'> 970B </span>","children":null,"spread":false},{"title":"UnityConnectSettings.asset <span style='color:#111;'> 943B </span>","children":null,"spread":false},{"title":"PackageManagerSettings.asset <span style='color:#111;'> 928B </span>","children":null,"spread":false},{"title":"AudioManager.asset <span style='color:#111;'> 416B </span>","children":null,"spread":false},{"title":"TagManager.asset <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"VFXManager.asset <span style='color:#111;'> 308B </span>","children":null,"spread":false},{"title":"EditorBuildSettings.asset <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"TimeManager.asset <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"VersionControlSettings.asset <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"XRSettings.asset <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"PresetManager.asset <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"ClusterInputManager.asset <span style='color:#111;'> 114B </span>","children":null,"spread":false},{"title":"boot.config <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"AzureOpenAIQueryHandler.cs <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false},{"title":"Loom.cs <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"TestAzureOpenAI.cs <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"System.Text.Json.dll <span style='color:#111;'> 568.67KB </span>","children":null,"spread":false},{"title":"System.Text.Json.dll <span style='color:#111;'> 557.16KB </span>","children":null,"spread":false},{"title":"System.Text.Json.dll <span style='color:#111;'> 557.16KB </span>","children":null,"spread":false},{"title":"System.Text.Json.dll <span style='color:#111;'> 530.67KB </span>","children":null,"spread":false},{"title":"System.Text.Json.dll <span style='color:#111;'> 529.66KB </span>","children":null,"spread":false},{"title":"Azure.Core.dll <span style='color:#111;'> 327.88KB </span>","children":null,"spread":false},{"title":"Azure.AI.OpenAI.dll <span style='color:#111;'> 224.38KB </span>","children":null,"spread":false},{"title":"System.Text.Json.SourceGeneration.dll <span style='color:#111;'> 170.17KB </span>","children":null,"spread":false},{"title":"System.Diagnostics.DiagnosticSource.dll <span style='color:#111;'> 169.17KB </span>","children":null,"spread":false},{"title":"System.Numerics.Vectors.dll <span style='color:#111;'> 159.63KB </span>","children":null,"spread":false},{"title":"System.Numerics.Vectors.dll <span style='color:#111;'> 157.14KB </span>","children":null,"spread":false},{"title":"System.Numerics.Vectors.dll <span style='color:#111;'> 157.14KB </span>","children":null,"spread":false},{"title":"System.Text.Json.SourceGeneration.dll <span style='color:#111;'> 155.66KB </span>","children":null,"spread":false},{"title":"System.Diagnostics.DiagnosticSource.dll <span style='color:#111;'> 155.63KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明