Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: upgrade to net9.0 #5

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
# SalesPitch [![Sparkline](https://stars.medv.io/Atypical-Consulting/SalesPitch.svg)](https://stars.medv.io/Atypical-Consulting/SalesPitch)

SalesPitch est une application de génération de pitch de vente utilisant OpenAI GPT-3. Créez des pitchs de vente percutants pour vos produits en quelques étapes simples.
SalesPitch is a sales pitch generation application using OpenAI GPT-4. Create impactful sales pitches for your products in just a few simple steps.

![SalesPitch](./assets/salespitch.png)

## Fonctionnalités

* Interagit avec OpenAI GPT-3.5 pour générer des pitchs de vente
* Prend en charge plusieurs langues (Français, Anglais, Allemand et Espagnol)
* Comprend plusieurs cadres de pitch de vente
* AIDA (Attention, Interest, Desire, Action)
* PAS (Problem-Agitate-Solve)
* USP (Unique Selling Proposition)
* Features-Benefits
* Storytelling
* WIIFM (What’s In It For Me)
* Youtility
* FAB (Features, Advantages, Benefits)
* HHE (Headline, Hook, Empathy)
* SUSPENSE (Surprise, Uniqueness, Specifics, Promise, Excitement, Newness, Story)
* Interface utilisateur conviviale avec Spectre.Console
* Possibilité d'utiliser des données de démonstration
## Features

* Interacts with OpenAI GPT-4o to generate sales pitches
* Supports multiple languages (French, English, German, and Spanish)
* Includes various sales pitch frameworks
* AIDA (Attention, Interest, Desire, Action)
* PAS (Problem-Agitate-Solve)
* USP (Unique Selling Proposition)
* Features-Benefits
* Storytelling
* WIIFM (What’s In It For Me)
* Youtility
* FAB (Features, Advantages, Benefits)
* HHE (Headline, Hook, Empathy)
* SUSPENSE (Surprise, Uniqueness, Specifics, Promise, Excitement, Newness, Story)
* User-friendly interface with Spectre.Console
* Ability to use demo data

## Installation

Assurez-vous d'avoir installé .NET 6.0 ou une version ultérieure sur votre machine.
Ensure that you have .NET 9.0 or a later version installed on your machine.

Clonez ce dépôt et naviguez jusqu'au dossier source :
Clone this repository and navigate to the source folder:

```sh
git clone https://github.com/user/SalesPitch.git
cd SalesPitch
```

Installez les dépendances et construisez le projet :
Install the dependencies and build the project:

```sh
dotnet restore
Expand All @@ -42,8 +42,8 @@ dotnet build --configuration Release

## Configuration

1. Obtenez une clé API auprès d'OpenAI (https://beta.openai.com/signup/)
2. Créez un fichier appsettings.json à la racine du projet avec la clé API :
1. Obtain an API key from OpenAI ([https://beta.openai.com/signup/](https://beta.openai.com/signup/))
2. Create an `appsettings.json` file at the root of the project with the API key:

```json
{
Expand All @@ -54,28 +54,28 @@ dotnet build --configuration Release
}
```

## Utilisation
## Usage

Exécutez l'application en utilisant la commande suivante à la racine du projet :
Run the application using the following command at the root of the project:

```sh
dotnet run --configuration Release --project src/SalesPitch
```

L'application vous guidera à travers plusieurs étapes pour générer un pitch de vente pour votre produit. Vous pouvez également utiliser les données de démonstration pour voir comment l'application fonctionne.
The application will guide you through several steps to generate a sales pitch for your product. You can also use the demo data to see how the application works.

## Contribution

Si vous souhaitez contribuer à ce projet, veuillez soumettre une pull request ou ouvrir une issue dans le dépôt GitHub.
If you wish to contribute to this project, please submit a pull request or open an issue in the GitHub repository.

## Licence
## License

Ce projet est sous licence MIT. Voir le fichier [LICENSE](LICENSE) pour plus de détails.
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.

## Remerciements
## Acknowledgments

Cette application a été inspirée l'article suivant : [Write A Great Chat GPT Sales Pitch in 5 Steps](https://txtly.ai/write-a-chat-gpt-sales-pitch/)
This application was inspired by the following article: [Write A Great Chat GPT Sales Pitch in 5 Steps](https://txtly.ai/write-a-chat-gpt-sales-pitch/)

* [OpenAI](https://openai.com/)
* [Spectre.Console](https://spectreconsole.net/)
* [Betalgo.OpenAI.GPT3](https://github.com/betalgo/openai)
* [Betalgo.OpenAI](https://github.com/betalgo/openai)
10 changes: 5 additions & 5 deletions src/SalesPitch/Commands/SalesPitchCommand.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using OpenAI.Interfaces;
using OpenAI.ObjectModels;
using OpenAI.ObjectModels.RequestModels;
using OpenAI.ObjectModels.ResponseModels;
using Betalgo.Ranul.OpenAI.Interfaces;
using Betalgo.Ranul.OpenAI.ObjectModels;
using Betalgo.Ranul.OpenAI.ObjectModels.RequestModels;
using Betalgo.Ranul.OpenAI.ObjectModels.ResponseModels;
using SalesPitch.Extensions;
using SalesPitch.Services.Language;
using Spectre.Console;
Expand Down Expand Up @@ -100,7 +100,7 @@ public override async Task<int> ExecuteAsync(
// Send the request and process the response
var completionResult =
_openAIService.ChatCompletion
.CreateCompletionAsStream(request, Models.Gpt_3_5_Turbo);
.CreateCompletionAsStream(request, Models.Chatgpt_4o_latest);

await foreach (ChatCompletionCreateResponse completion in completionResult)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OpenAI.ObjectModels.ResponseModels;
using Betalgo.Ranul.OpenAI.ObjectModels.ResponseModels;

namespace SalesPitch.Extensions;

Expand Down
4 changes: 2 additions & 2 deletions src/SalesPitch/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Configuration;
using Betalgo.Ranul.OpenAI.Extensions;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using OpenAI.Extensions;
using Spectre.Console.Cli;
using SalesPitch.Commands;
using SalesPitch.Services.Language;
Expand Down
18 changes: 9 additions & 9 deletions src/SalesPitch/SalesPitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UserSecretsId>458c1c01-d3e1-4d45-9846-e8beb07f93ce</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Betalgo.OpenAI" Version="7.1.5" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
<PackageReference Include="Scrutor" Version="4.2.2" />
<PackageReference Include="Spectre.Console" Version="0.47.0" />
<PackageReference Include="Spectre.Console.Analyzer" Version="0.47.0">
<PackageReference Include="Betalgo.Ranul.OpenAI" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
<PackageReference Include="Scrutor" Version="5.0.3" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
<PackageReference Include="Spectre.Console.Analyzer" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Spectre.Console.Cli" Version="0.47.0" />
<PackageReference Include="Spectre.Console.Cli" Version="0.49.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading