Skip to content

Commit

Permalink
Fixed an issue with AI generation not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Feb 28, 2024
1 parent 8967835 commit e1f106d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ColorPicker/Pages/AiGenPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ private async void GenerateBtn_Click(object sender, RoutedEventArgs e)
});
var completionResult = await openAiService.ChatCompletion.CreateCompletion(new ChatCompletionCreateRequest
{
Messages = new List<ChatMessage>
{
ChatMessage.FromSystem("GOAL: You are a color generator assistant. The user gives you a prompt to generate a SINGLE color. FORMAT: The color is in hexadecimal format #FFFFFF"),
ChatMessage.FromUser(PromptTxt.Text)
},
Messages =
[
ChatMessage.FromSystem("GOAL: You are a color generator assistant. The user gives you a prompt to generate a SINGLE color. RESPONDE FORMAT: Only the color is in hexadecimal format, i.e.: #FFFFFF. "),
ChatMessage.FromUser("Generate a color from this prompt: " + PromptTxt.Text)
],
Model = Global.Settings.Model ?? Models.Gpt_3_5_Turbo,
});

Expand Down

0 comments on commit e1f106d

Please sign in to comment.