OpenAIChatGPTBlazor

所属分类:GPT/ChatGPT
开发工具:HTML
文件大小:0KB
下载次数:0
上传日期:2023-06-24 14:11:17
上 传 者sh-1993
说明:  OpenAIChatGPT浏览器
(OpenAIChatGPTBlazor)

文件列表:
.devcontainer/ (0, 2023-06-24)
.devcontainer/devcontainer.json (226, 2023-06-24)
.dockerignore (316, 2023-06-24)
.idea/ (0, 2023-06-24)
.idea/.idea.OpenAIChatGPTBlazor/ (0, 2023-06-24)
.idea/.idea.OpenAIChatGPTBlazor/.idea/ (0, 2023-06-24)
.idea/.idea.OpenAIChatGPTBlazor/.idea/encodings.xml (169, 2023-06-24)
.idea/.idea.OpenAIChatGPTBlazor/.idea/indexLayout.xml (198, 2023-06-24)
LICENSE (1073, 2023-06-24)
OpenAIChatGPTBlazor.sln (1393, 2023-06-24)
OpenAIChatGPTBlazor/ (0, 2023-06-24)
OpenAIChatGPTBlazor/App.razor (465, 2023-06-24)
OpenAIChatGPTBlazor/Dockerfile (814, 2023-06-24)
OpenAIChatGPTBlazor/OpenAIChatGPTBlazor.csproj (851, 2023-06-24)
OpenAIChatGPTBlazor/Pages/ (0, 2023-06-24)
OpenAIChatGPTBlazor/Pages/Error.cshtml (1535, 2023-06-24)
OpenAIChatGPTBlazor/Pages/Error.cshtml.cs (719, 2023-06-24)
OpenAIChatGPTBlazor/Pages/Index.razor (3040, 2023-06-24)
OpenAIChatGPTBlazor/Pages/Index.razor.cs (5102, 2023-06-24)
OpenAIChatGPTBlazor/Pages/Index.razor.css (1080, 2023-06-24)
OpenAIChatGPTBlazor/Pages/_Host.cshtml (1997, 2023-06-24)
OpenAIChatGPTBlazor/Program.cs (2174, 2023-06-24)
OpenAIChatGPTBlazor/Properties/ (0, 2023-06-24)
OpenAIChatGPTBlazor/Properties/launchSettings.json (1122, 2023-06-24)
OpenAIChatGPTBlazor/Shared/ (0, 2023-06-24)
OpenAIChatGPTBlazor/Shared/MainLayout.razor (203, 2023-06-24)
OpenAIChatGPTBlazor/Shared/MainLayout.razor.css (411, 2023-06-24)
OpenAIChatGPTBlazor/Shared/NavMenu.razor (884, 2023-06-24)
OpenAIChatGPTBlazor/Shared/NavMenu.razor.css (1184, 2023-06-24)
OpenAIChatGPTBlazor/Shared/SurveyPrompt.razor (507, 2023-06-24)
OpenAIChatGPTBlazor/_Imports.razor (402, 2023-06-24)
OpenAIChatGPTBlazor/appsettings.Development.json (145, 2023-06-24)
OpenAIChatGPTBlazor/appsettings.json (142, 2023-06-24)
OpenAIChatGPTBlazor/wwwroot/ (0, 2023-06-24)
OpenAIChatGPTBlazor/wwwroot/css/ (0, 2023-06-24)
OpenAIChatGPTBlazor/wwwroot/css/bootstrap/ (0, 2023-06-24)
... ...

# OpenAIChatGPTBlazor This is a Blazor WebAssembly application that uses OpenAI GPT-3.5 Turbo to enable a chat interface for generating human-like text. The application is designed to work with .NET and Azure, and it provides support for both local configurations and Azure App Configuration. ## Table of Contents 1. [Requirements](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Requirements) 2. [Installation](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Installation) 3. [Configuration](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Configuration) - [Local Configuration](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Local-Configuration) - [Azure App Configuration](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Azure-App-Configuration) 4. [Usage](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Usage) 5. [Contributing](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#Contributing) 6. [License](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/#License) ## Requirements - .NET 6.0 SDK - Azure App Configuration (optional) ## Installation 1. Clone the repository: ``` git clone https://github.com/LXBdev/OpenAIChatGPTBlazor.git ``` 2. Navigate to the `OpenAIChatGPTBlazor` folder: ``` cd OpenAIChatGPTBlazor ``` 3. Restore the required packages: ``` dotnet restore ``` 4. Build the application: ``` dotnet build ``` 5. Run the application: ``` dotnet run ``` ## Configuration ### Local Configuration To use a local configuration, add user secrets with the following content: ```json { "OpenAI": { "ResourceName": "oai-myendpoint-eus", "SelectableModels": "gpt-35-turbo", // Comma-separated list "ApiKey": "xxx" // remove to use AAD auth }, } ``` Provide your OpenAI API Key in the `ApiKey` field, or remove the field to use AAD authentication. ### Azure App Configuration To use a Azure App Configuration, add user secrets with the following content: ```json { "AppConfig": { "Endpoint": "https://appcs-myinstance-weu.azconfig.io" } } ``` Replace the `Endpoint` value with the URL of your Azure App Configuration instance. This is using AAD authentication. ## Usage After configuring and running the application, open a web browser and navigate to `https://localhost:7128`. You should be able to use the chat interface to communicate with the GPT-3.5 Turbo model and generate human-like text. ## Contributing We welcome contributions from the community! Feel free to submit Pull Requests and Issues to report bugs or request features. ## License This project is licensed under the MIT License. See the [LICENSE](https://github.com/LXBdev/OpenAIChatGPTBlazor/blob/master/LICENSE) file for details.

近期下载者

相关文件


收藏者