https://github.com/evandroamparo/llm-chat
A simple chat bot using Groq Cloud and the OpenAI Nuget package
https://github.com/evandroamparo/llm-chat
artificial-intelligence groq groq-api groq-integration large-language-models openai
Last synced: about 2 months ago
JSON representation
A simple chat bot using Groq Cloud and the OpenAI Nuget package
- Host: GitHub
- URL: https://github.com/evandroamparo/llm-chat
- Owner: evandroamparo
- Created: 2024-12-29T23:29:41.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-27T14:52:41.000Z (8 months ago)
- Last Synced: 2025-02-12T07:55:46.107Z (8 months ago)
- Topics: artificial-intelligence, groq, groq-api, groq-integration, large-language-models, openai
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChatApp
## Overview
ChatApp is a console application that simulates a chat assistant designed to sell an internet plan to a customer. The assistant uses the OpenAI-compatible API to generate responses and is configured to be persistent and persuasive.It's currently using the free [Groq API](https://groq.com/).
## Prerequisites
- .NET 9.0 SDK or later
- A Groq API key## Setup
1. **Clone the repository:**
```sh
git clone
cd llm-chat
```2. **Add User Secrets:**
The project uses user secrets to store sensitive information like the API key. To add your secrets, run the following commands:
```sh
dotnet user-secrets init
dotnet user-secrets set "GroqApiKey" ""
dotnet user-secrets set "ModelName" ""
dotnet user-secrets set "BaseUrl" ""
```You can get an API key from [Groq dev console](https://console.groq.com/keys).
The available models are listed [here](https://console.groq.com/docs/models). I suggest Llama because it has a larger context window.
The OpenAI-compatible base URL can be found [here](https://console.groq.com/docs/openai).
3. **Restore dependencies:**
```sh
dotnet restore
```## Running the Application
1. **Build the project:**
```sh
dotnet build
```2. **Run the project:**
```sh
dotnet run
```## Usage
- The application will start and display a welcome message.
- Type your messages and press Enter to interact with the chat assistant.
- Type `exit` to exit the chat.## License
This project is licensed under the MIT License.