Skip to content

Commit

Permalink
remove unused field in AzureOpenAITranslator
Browse files Browse the repository at this point in the history
  • Loading branch information
dogdie233 authored Nov 2, 2024
1 parent d230799 commit cdd086c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions TranslatorLibrary/AzureOpenAITranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,12 @@ private static ChatRequest CreateCompletionRequest(string sourceText, string des
public class ChatRequest
{
[JsonPropertyName("messages")] public List<MessageRequest> 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

Check failure on line 141 in TranslatorLibrary/AzureOpenAITranslator.cs

View workflow job for this annotation

GitHub Actions / build

; expected

Check failure on line 141 in TranslatorLibrary/AzureOpenAITranslator.cs

View workflow job for this annotation

GitHub Actions / build

; expected

Check failure on line 141 in TranslatorLibrary/AzureOpenAITranslator.cs

View workflow job for this annotation

GitHub Actions / build

; expected

Check failure on line 141 in TranslatorLibrary/AzureOpenAITranslator.cs

View workflow job for this annotation

GitHub Actions / build

; expected
}

public class ChatResponse
{
[JsonPropertyName("choices")] public List<ChatChoice> 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
Expand Down Expand Up @@ -234,4 +225,4 @@ public class CompletionUsage
}
#endregion
}
}
}

0 comments on commit cdd086c

Please sign in to comment.