GptForUnityServer

所属分类:GPT/ChatGPT
开发工具:C#
文件大小:0KB
下载次数:0
上传日期:2023-08-21 09:22:31
上 传 者sh-1993
说明:  通用服务器,,
(GptForUnityServer,,)

文件列表:
.editorconfig (206, 2023-08-21)
GptForUnityServer.sln (3608, 2023-08-21)
GptUnityServer/ (0, 2023-08-21)
GptUnityServer/.config/ (0, 2023-08-21)
GptUnityServer/.config/dotnet-tools.json (153, 2023-08-21)
GptUnityServer/Controllers/ (0, 2023-08-21)
GptUnityServer/Controllers/RestApiServerController.cs (3227, 2023-08-21)
GptUnityServer/GptForUnityServer.csproj (1176, 2023-08-21)
GptUnityServer/GptUnityServer - Backup.csproj (966, 2023-08-21)
GptUnityServer/Models/ (0, 2023-08-21)
GptUnityServer/Models/Settings.cs (3992, 2023-08-21)
GptUnityServer/Program.cs (4492, 2023-08-21)
GptUnityServer/Properties/ (0, 2023-08-21)
GptUnityServer/Properties/launchSettings.json (965, 2023-08-21)
GptUnityServer/Properties/serviceDependencies.json (108, 2023-08-21)
GptUnityServer/Properties/serviceDependencies.local.json (112, 2023-08-21)
GptUnityServer/Services/ (0, 2023-08-21)
GptUnityServer/Services/AiApiServices/ (0, 2023-08-21)
GptUnityServer/Services/AiApiServices/AiApiChatResponseService.cs (4499, 2023-08-21)
GptUnityServer/Services/AiApiServices/AiApiKeyValidationService.cs (1137, 2023-08-21)
GptUnityServer/Services/AiApiServices/AiApiModelManager.cs (1923, 2023-08-21)
GptUnityServer/Services/AiApiServices/AiApiResponseService.cs (2352, 2023-08-21)
GptUnityServer/Services/KoboldAIServices/ (0, 2023-08-21)
GptUnityServer/Services/KoboldAIServices/KoboldAiChatService.cs (2666, 2023-08-21)
GptUnityServer/Services/KoboldAIServices/KoboldAiResponseService.cs (3352, 2023-08-21)
GptUnityServer/Services/OobaUiServices/ (0, 2023-08-21)
GptUnityServer/Services/OobaUiServices/OobaUiChatService.cs (2859, 2023-08-21)
GptUnityServer/Services/OobaUiServices/OobaUiResponseService.cs (2477, 2023-08-21)
GptUnityServer/Services/ServerManagment/ (0, 2023-08-21)
GptUnityServer/Services/ServerManagment/UnityServerManagerService.cs (4786, 2023-08-21)
GptUnityServer/Services/ServerProtocols/ (0, 2023-08-21)
GptUnityServer/Services/ServerProtocols/IUnityProtocolServer.cs (543, 2023-08-21)
GptUnityServer/Services/ServerProtocols/RestApiServerService.cs (1147, 2023-08-21)
GptUnityServer/Services/ServerProtocols/TcpServerService.cs (7165, 2023-08-21)
GptUnityServer/Services/ServerProtocols/UdpServerService.cs (4464, 2023-08-21)
GptUnityServer/Services/ServerProtocols/UnityBasicProtocolServer.cs (6364, 2023-08-21)
GptUnityServer/Services/UnityCloudCode/ (0, 2023-08-21)
GptUnityServer/Services/UnityCloudCode/CloudChatResponseService.cs (4303, 2023-08-21)
GptUnityServer/Services/UnityCloudCode/CloudCodeValidationService.cs (1417, 2023-08-21)
... ...

# GptUnityServer ## IMPORTANT - This project is still under construction, and the instructions listed here are liable to change. Full documentation will be posted on a dedicated documentation site later on. ## Overview Have you wanted to get the power of local and cloud Ai inside of Unity to help build your games? Well, look no further! The GptForUnity program comes in two parts: GptForUnityServer is a middleware tool meant to host TCP/UDP servers to connect Unity with Ai service APIs (OobaUi,OpenAi, ect) GptForUnityClient, a user interface, and client meant to receive and handle prompting the Ai services The server component performs the following functions: - Connect to the GptUnityClient - Access cloud and local Ai services on behalf of the Unity Client using ASP.Net Core - Exchange data between Unity and the AI Services by using a Shared Library of models # Installation Download the `GptForUnityServer.zip` and extract the file from the releases page inside your Unity project's directory. (It should sit next to the Assets and Libary folder). The GptUnityClient can then start the server at runtime and populate it with information dynamically. Download the `GptForUnityClient.unitypackadge` and add that to your unity project. Load up the `GptPlayground.unity` Scene Find the `Start.bat` file of your local Ai service using the Bat File Search bar if using local AI's Select your desired Protocol, Service Type, and Prompt Construction Hit Login and access the playground! The server is a Visual Studio project that can be launched independently from Unity for testing, and all configuration information is populated by the `appsettings.json` file. # Final Notes - I recommend TCP protocol for character-based chats, as the prompts are so big, packet loss can occur with UDP - HTTP does not use the Client Ui workflow, you would need to write your own UnityWebRequests # Contributions -This wouldn't be possible without the [Unity-Net-Core-Web-Sockets repository](https://github.com/JohannesDeml/Unity-Net-Core-Networking-Sockets). -Big thanks to [The Unity Standalone File Brower](https://github.com/gkngkc/UnityStandaloneFileBrowser)

近期下载者

相关文件


收藏者