Files
baibot-withmcp/src/entity/roomconfig/defaults.rs

29 lines
1.4 KiB
Rust
Raw Normal View History

use super::{SpeechToTextFlowType, SpeechToTextMessageTypeForNonThreadedOnlyTranscribedMessages};
use super::{
TextGenerationAutoUsage, TextGenerationPrefixRequirementType, TextGenerationSenderContextMode,
};
2024-09-12 13:44:06 +03:00
use super::{TextToSpeechBotMessagesFlowType, TextToSpeechUserMessagesFlowType};
pub const TEXT_GENERATION_PREFIX_REQUIREMENT_TYPE: TextGenerationPrefixRequirementType =
TextGenerationPrefixRequirementType::No;
pub const TEXT_GENERATION_AUTO_USAGE: TextGenerationAutoUsage = TextGenerationAutoUsage::Always;
pub const TEXT_GENERATION_SENDER_CONTEXT_MODE: TextGenerationSenderContextMode =
TextGenerationSenderContextMode::Disabled;
2024-09-12 13:44:06 +03:00
pub const TEXT_TO_SPEECH_BOT_MESSAGES_FLOW_TYPE: TextToSpeechBotMessagesFlowType =
TextToSpeechBotMessagesFlowType::OnDemandForVoice;
pub const TEXT_TO_SPEECH_USER_MESSAGES_FLOW_TYPE: TextToSpeechUserMessagesFlowType =
TextToSpeechUserMessagesFlowType::OnDemand;
pub const SPEECH_TO_TEXT_FLOW_TYPE: SpeechToTextFlowType =
SpeechToTextFlowType::TranscribeAndGenerateText;
// While notice messages may be less desirable with other bots in the room,
// it's probably a better default for most people who enable "transcribe-only" mode.
pub const SPEECH_TO_TEXT_ONLY_TRANSCRIBE_NON_THREADED_MESSAGE_TYPE:
SpeechToTextMessageTypeForNonThreadedOnlyTranscribedMessages =
SpeechToTextMessageTypeForNonThreadedOnlyTranscribedMessages::Text;