chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
public class AudioOptions
|
||||
{
|
||||
// Audio configuration constants, not part of appsettings, not intended to be changed
|
||||
public const int SampleRate = 16000;
|
||||
public const int Channels = 1;
|
||||
public const int BitsPerSample = 16;
|
||||
public const int BufferMilliseconds = 20;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
public class ChatOptions
|
||||
{
|
||||
public const string SectionName = "Chat";
|
||||
|
||||
[Required]
|
||||
public string SystemMessage { get; set; } = string.Empty;
|
||||
|
||||
// Chat response streaming constants
|
||||
public int StreamingChunkSizeThreshold { get; set; } = 100;
|
||||
public double Temperature { get; set; } = 0.7;
|
||||
public int MaxTokens { get; set; } = 500;
|
||||
public double TopP { get; set; } = 0.9;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
public class OpenAIOptions
|
||||
{
|
||||
public const string SectionName = "OpenAI";
|
||||
|
||||
[Required]
|
||||
public string ApiKey { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string ChatModelId { get; set; } = "gpt-4";
|
||||
|
||||
[Required]
|
||||
public string TranscriptionModelId { get; set; } = "gpt-4o-transcribe";
|
||||
|
||||
[Required]
|
||||
public string SpeechModelId { get; set; } = "gpt-4o-mini-tts";
|
||||
}
|
||||
Reference in New Issue
Block a user