Add AI env variables configuration
This commit is contained in:
parent
81a4a6c767
commit
325cd21f5d
@ -6,6 +6,41 @@ import (
|
|||||||
"strconv"
|
"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
|
// GetRateLimitSec
|
||||||
// Get the rate limit time amount to limit user request
|
// Get the rate limit time amount to limit user request
|
||||||
// for example a user can make 1 request each sec "1 req x sec"
|
// for example a user can make 1 request each sec "1 req x sec"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user