MCPcopy Create free account

hub / github.com/askrella/whatsapp-chatgpt / functions

Functions39 in github.com/askrella/whatsapp-chatgpt

↓ 8 callersFunctiongetConfig
(target: string, type: string)
src/handlers/ai-config.ts:124
↓ 8 callersFunctiongetEnvBooleanWithDefault
* Get an environment variable as a boolean with a default value * @param key The environment variable key * @param defaultValue The default value *
src/config.ts:129
↓ 6 callersFunctionstartsWithIgnoreCase
(str, prefix)
src/utils.ts:1
↓ 3 callersFunctionhandleMessageGPT
(message: Message, prompt: string)
src/handlers/gpt.ts:24
↓ 2 callersFunctionhandleIncomingMessage
(message: Message)
src/handlers/message.ts:27
↓ 2 callersFunctioninitOpenAI
()
src/providers/openai.ts:18
↓ 2 callersFunctionmoderateIncomingPrompt
(prompt: string)
src/handlers/moderation.ts:11
↓ 1 callersFunctionconvertOggToWav
(oggPath: string, wavPath: string)
src/providers/openai.ts:99
↓ 1 callersFunctionexecuteCommand
(target: string, type: string, message: Message, value?: string | undefined)
src/handlers/ai-config.ts:134
↓ 1 callersFunctiongetEnvAWSPollyVoiceEngine
* Get the AWS Polly voice engine from the environment variable * @returns The voice engine
src/config.ts:181
↓ 1 callersFunctiongetEnvMaxModelTokens
* Get the max model tokens from the environment variable * @returns The max model tokens from the environment variable or 4096
src/config.ts:114
↓ 1 callersFunctiongetEnvPromptModerationBlacklistedCategories
* Get the blacklist categories for prompt moderation from the environment variable * @returns Blacklisted categories for prompt moderation
src/config.ts:142
↓ 1 callersFunctiongetEnvTTSMode
* Get the tss mode from the environment variable * @returns The tts mode
src/config.ts:168
↓ 1 callersFunctiongetEnvTranscriptionMode
* Get the transcription mode from the environment variable * @returns The transcription mode
src/config.ts:155
↓ 1 callersFunctionhandleDeleteConversation
(message: Message)
src/handlers/gpt.ts:87
↓ 1 callersFunctionhandleMessageAIConfig
(message: Message, prompt: any)
src/handlers/ai-config.ts:29
↓ 1 callersFunctionhandleMessageDALLE
(message: any, prompt: any)
src/handlers/dalle.ts:11
↓ 1 callersFunctionhandleMessageLangChain
(message: Message, prompt: string)
src/handlers/langchain.ts:8
↓ 1 callersFunctioninitAiConfig
()
src/handlers/ai-config.ts:22
↓ 1 callersFunctionparseDetectedLanguage
(text)
src/providers/whisper-local.ts:34
↓ 1 callersFunctionparseTextAfterTimeFrame
(text)
src/providers/whisper-local.ts:45
↓ 1 callersFunctionsendVoiceMessageReply
(message: Message, gptTextResponse: string)
src/handlers/gpt.ts:95
↓ 1 callersFunctionstart
()
src/index.ts:19
↓ 1 callersFunctiontranscribeAudioLocal
(audioBuffer: Buffer)
src/providers/whisper-local.ts:7
↓ 1 callersFunctiontranscribeOpenAI
(audioBuffer: Buffer)
src/providers/openai.ts:36
↓ 1 callersFunctiontranscribeRequest
* @param audioBlob The audio blob to be transcribed * @returns Response: { text: string, language: string }
src/providers/speech.ts:35
↓ 1 callersFunctiontranscribeWhisperApi
(audioBlob: Blob)
src/providers/whisper-api.ts:3
↓ 1 callersFunctionttsRequest
* @param text The sentence to be converted to speech * @returns Audio buffer
src/providers/aws.ts:8
FunctiongetCommand
(module: string, command: string)
src/handlers/ai-config.ts:120
Functionprint
(text: string)
src/cli/ui.ts:3
FunctionprintAuthenticated
()
src/cli/ui.ts:29
FunctionprintAuthenticationFailure
()
src/cli/ui.ts:33
FunctionprintError
(text: string)
src/cli/ui.ts:7
FunctionprintIntro
()
src/cli/ui.ts:11
FunctionprintLoading
()
src/cli/ui.ts:25
FunctionprintOutro
()
src/cli/ui.ts:37
FunctionprintQRCode
(qr: string)
src/cli/ui.ts:20
FunctionttsRequest
* @param text The sentence to be converted to speech * @returns Audio buffer
src/providers/speech.ts:7
FunctionttsRequest
()
src/handlers/gpt.ts:97