Skip to content

Commit

Permalink
feat: Added ChatClient LatestSmartModel/LatestFastModel constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Aug 6, 2024
1 parent ebb2ec5 commit 9f126aa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/libs/OpenAI/ChatClient.AsStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,4 @@ public partial class ChatClient
}
}
}

public sealed partial class JsonSerializerContextTypes
{
/// <summary>
///
/// </summary>
public CreateChatCompletionStreamResponse? CreateChatCompletionStreamResponse { get; set; }
}
}
14 changes: 14 additions & 0 deletions src/libs/OpenAI/ChatClient.LatestModelConstants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace OpenAI;

public partial class ChatClient
{
/// <summary>
/// Always points to the latest smart model.
/// </summary>
public const CreateChatCompletionRequestModel LatestSmartModel = CreateChatCompletionRequestModel.Gpt4o;

/// <summary>
/// Always points to the latest fast model.
/// </summary>
public const CreateChatCompletionRequestModel LatestFastModel = CreateChatCompletionRequestModel.Gpt4oMini;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ public sealed partial class JsonSerializerContextTypes
/// To fix issue with LogitBias.
/// </summary>
public Dictionary<string, double>? StringDoubleDictionary { get; set; }

/// <summary>
///
/// </summary>
public CreateChatCompletionStreamResponse? CreateChatCompletionStreamResponse { get; set; }
}

0 comments on commit 9f126aa

Please sign in to comment.