|
1 |
| -# Please read the project article at codeproject.com |
| 1 | +# Please read my project article at codeproject.com |
2 | 2 | https://www.codeproject.com/Tips/5377103/ChatGPT-API-in-Csharp-WPF-XAML-MVVM
|
3 | 3 |
|
4 |
| -# C# WPF ChatGPT |
5 |
| -C# WPF app that communicates OpenAI GPT3.5-turbo API |
| 4 | +# ChatGPT API in C# WPF / XAML / MVVM |
| 5 | +C# WPF app that communicates with OpenAI GPT-3.5 Turbo API |
6 | 6 |
|
7 |
| - |
| 7 | + |
8 | 8 |
|
9 |
| - |
| 9 | + |
| 10 | + |
| 11 | + |
10 | 12 |
|
11 | 13 | # Setup
|
12 | 14 | Create an Open AI account to obtain an API key (free):
|
13 | 15 | https://platform.openai.com/account/api-keys
|
14 | 16 |
|
15 | 17 | You can use the key as a command line parameter (without compiling the project):
|
16 |
| -1. Click CSharpWpfChatGPT_v1.2 under Releases on the right side of this page |
17 |
| -2. Download CSharpWpfChatGPT_v1.2_net6.0-windows.zip |
| 18 | +1. Click CSharpWpfChatGPT_v1.3 under Releases on the right side of this page |
| 19 | +2. Download CSharpWpfChatGPT_v1.3_net6.0-windows.zip |
18 | 20 | 3. Unzip the file and run CSharpWpfChatGPT.exe /the key obtained above (CSharpWpfChatGPT.exe /sk-Ih...WPd)
|
19 | 21 |
|
20 |
| -Or in App.xaml.cs, modify this line: |
21 |
| -return "<Your Open AI API Key is something like \"sk-Ih...WPd\">"; |
| 22 | +Or in App.xaml.cs, modify this: |
| 23 | +"<Your Open AI API Key is something like \"sk-Ih...WPd\">"; |
22 | 24 |
|
23 | 25 | Build CSharpWpfChatGPT.sln with Visual Studio 2022 (Community version okay). This app is targeted for .NET 6 and 8. If you don't have .NET 8 installed, remove net8.0-windows in CSharpWpfChatGPT.csproj.
|
24 | 26 |
|
|
0 commit comments