This project demonstrates the integration of ChatGPT, a language model developed by OpenAI, with C# using the OpenAI API. It allows you to interact with the ChatGPT model and generate human-like responses to user inputs.
To run this project, you'll need the following:
- .NET Core SDK 7.0.302
- OpenAI API key
- Clone the repository:
git clone [email protected]:ZeraAI/AIConverse.git
- Navigate to the project directory:
cd AIConverse
- Set your OpenAI API key in the
appsettings.json
file.
- Build the project:
dotnet build
- Run the application:
dotnet run
- Enter your input and press Enter.
- The application will send the input to the ChatGPT model and display the generated response.
Make sure to set your OpenAI API key in the appsettings.json
file. Replace YOUR_API_KEY
with your actual API key:
{
"OpenAI": {
"ApiKey": "YOUR_API_KEY"
}
}
You can customize the behavior of the ChatGPT integration by modifying the code in the ChatGptService.cs
file. Adjust the parameters passed to the OpenAIService.Complete()
method to control the response generation.
This project is licensed under the [license name]. See the LICENSE file for more details.
- OpenAI for providing the ChatGPT model and API.