From 325cd21f5d5863f00f15e5503c720d7c3899f467 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Sun, 23 Feb 2025 09:49:57 -0400 Subject: [PATCH] Add AI env variables configuration --- config/config.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/config/config.go b/config/config.go index 98fccf9..160d4f7 100644 --- a/config/config.go +++ b/config/config.go @@ -6,6 +6,41 @@ import ( "strconv" ) +// GetAIServerURI ... +func GetAIServerURI()string { + return getEnvVariable("AI_SERVER_URI") +} + +// GetAIChatServerPort ... +func GetAIChatServerPort()string { + return getEnvVariable("AI_CHAT_SERVER_PORT") +} + +// GetAIChatModel ... +func GetAIChatModel()string { + return getEnvVariable("AI_CHAT_MODEL") +} + +// GetAIChatModelFast ... +func GetAIChatModelFast()string { + return getEnvVariable("AI_CHAT_MODEL_FAST") +} + +// GetAITranscribeServerPort ... +func GetAITranscribeServerPort()string { + return getEnvVariable("AI_TRANSCRIBE_SERVER_PORT") +} + +// GetAITranscribeModel ... +func GetAITranscribeModel()string{ + return getEnvVariable("AI_TRANSCRIBE_MODEL") +} + +// GetAIChatImageModel ... +func GetAIChatImageModel()string { + return getEnvVariable("AI_CHAT_IMAGE") +} + // GetRateLimitSec // Get the rate limit time amount to limit user request // for example a user can make 1 request each sec "1 req x sec"