Skip to content

Instantly share code, notes, and snippets.

View Draugr-official's full-sized avatar
🪐
Thinking...

Passenger Draugr-official

🪐
Thinking...
View GitHub Profile
@Draugr-official
Draugr-official / AiPrompts.cs
Created August 2, 2023 16:35
A class containing relevant AI prompts
internal class AiPrompts
{
public static string SupportPrompt = @"I am a support specialist working to help me, who are having issues with the utility named 'App'.";
public static string TestPrompt = @"Assistant is an intelligent chatbot designed to help users answer their tax related questions.
Instructions:
- Only answer questions related to taxes.
- If you're unsure of an answer, you can say ""I don't know"" or ""I'm not sure"" and recommend users go to the IRS website for more information.";
}
@Draugr-official
Draugr-official / AiModel.cs
Last active August 2, 2023 18:03
A simple wrapper around the OpenAI API
internal class AiModel
{
HttpClient httpClient = new HttpClient();
List<GptMessage> Messages = new List<GptMessage>();
public AiModel()
{
httpClient.DefaultRequestHeaders.Add("api-key", "APIKEY");
httpClient.DefaultRequestHeaders.Add("Authorization", "Bearer APIKEY");