From cdd086ca7e71b912eebaba3de0dfb06e962b557f Mon Sep 17 00:00:00 2001 From: dogdie233 Date: Sat, 2 Nov 2024 19:15:34 +0800 Subject: [PATCH] remove unused field in AzureOpenAITranslator --- TranslatorLibrary/AzureOpenAITranslator.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/TranslatorLibrary/AzureOpenAITranslator.cs b/TranslatorLibrary/AzureOpenAITranslator.cs index 0d497baa..a35e748b 100644 --- a/TranslatorLibrary/AzureOpenAITranslator.cs +++ b/TranslatorLibrary/AzureOpenAITranslator.cs @@ -138,21 +138,12 @@ private static ChatRequest CreateCompletionRequest(string sourceText, string des public class ChatRequest { [JsonPropertyName("messages")] public List Messages { get; set; } = new(); - [JsonPropertyName("stream")] public bool Stream { get; set; } = false; - // [JsonPropertyName("temperature")] public double Temperature { get; set; } = 0.7; - // [JsonPropertyName("top_p")] public double TopP { get; set; } = 0.95; - // [JsonPropertyName("max_tokens")] public int MaxTokens { get; set; } = 800; + [JsonPropertyName("stream")] public bool Stream { get; set; } = false } public class ChatResponse { [JsonPropertyName("choices")] public List Choices { get; set; } = new(); - // [JsonPropertyName("created")] public ulong Created { get; set; } - // [JsonPropertyName("id")] public string Id { get; set; } = string.Empty; - // [JsonPropertyName("model")] public string Model { get; set; } = string.Empty; - // [JsonPropertyName("object")] public string Object { get; set; } = string.Empty; - // [JsonPropertyName("system_fingerprint")] public string SystemFingerprint { get; set; } = string.Empty; - // [JsonPropertyName("usage")] public CompletionUsage Usage { get; set; } = new(); } public class ChatErrorResponse @@ -234,4 +225,4 @@ public class CompletionUsage } #endregion } -} \ No newline at end of file +}