Skip to content

Commit

Permalink
feat: add all current relevant llm choices
Browse files Browse the repository at this point in the history
  • Loading branch information
JKamue committed Jun 10, 2024
1 parent 9fa5177 commit 83a89da
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
19 changes: 15 additions & 4 deletions EasyOpenAiTools.Library/OpenAi/OpenAiModelType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,25 @@
public class OpenAiModelType
{
/// <summary>
/// Gets the GPT-4 model type.
/// Gets the GPT-4o model type. The most advanced, multimodal flagship model that’s cheaper and faster than GPT-4 Turbo
/// </summary>
public static OpenAiModelType Gpt4 => new OpenAiModelType("gpt-4o");
public static OpenAiModelType Gpt4o => new OpenAiModelType("gpt-4o");

/// <summary>
/// Gets the GPT-3.5 model type (Turbo variant).
/// Gets the latest GPT-4 Turbo model type
/// </summary>
public static OpenAiModelType Gpt35 => new OpenAiModelType("gpt-3.5-turbo-0125");
public static OpenAiModelType Gpt4Turbo => new OpenAiModelType("gpt-4-turbo");

/// <summary>
/// Gets the latest GPT-4 model type
/// </summary>
public static OpenAiModelType Gpt4 => new OpenAiModelType("gpt-4");

/// <summary>
/// Gets the GPT-3.5 model type (Turbo variant). The latest GPT-3.5 Turbo model with higher accuracy at
/// responding in requested formats. Returns a maximum of 4,096 output tokens
/// </summary>
public static OpenAiModelType Gpt35 => new OpenAiModelType("gpt-3.5-turbo");

internal string Name { get; init; }

Expand Down
2 changes: 1 addition & 1 deletion EasyOpenAiTools.Samples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static void Main(string[] args)
var logger = loggerFactory.CreateLogger("EasyOpenAi");

var openAiApiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY");
var openAiModelType = OpenAiModelType.Gpt4;
var openAiModelType = OpenAiModelType.Gpt4o;
var initialPrompt = """
Answer all questions by users in a brief and concise way.
""";
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Make sure to check the `EasyOpenAiTools.Samples` project for a running example.

To start a cjat you need to supply an OpenAiSettings Object containing the following information:
- Your Api Key
- The Type of Model you want to use (currently Gpt3.5 or Gpt4)
- The Type of Model you want to use
- The initial prompt telling the model how to behave [check here for inspiration](https://platform.openai.com/docs/guides/prompt-engineering/tactics)

```c#
var openAiApiKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY");
var openAiModelType = OpenAiModelType.Gpt4;
var openAiModelType = OpenAiModelType.Gpt4o;
var initialPrompt = "Answer all questions by users in a brief and concise way.";

var openAiSettings = new OpenAiSettings(openAiApiKey, openAiModelType, initialPrompt);
Expand Down

0 comments on commit 83a89da

Please sign in to comment.