switch llm to gemini
This commit is contained in:
Vendored
+16
-5
@@ -2,6 +2,7 @@ package env
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
tempest "github.com/Amatsagu/Tempest"
|
||||
@@ -15,19 +16,29 @@ func GetEnvVariables() Env {
|
||||
serverIDs = append(serverIDs, tempest.StringToSnowflake(id))
|
||||
}
|
||||
|
||||
halResPercent, err := strconv.Atoi(os.Getenv("HAL_RESPONSE_PERCENT"))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return Env{
|
||||
AppID: tempest.StringToSnowflake(os.Getenv("HAL_APP_ID")),
|
||||
PublicKey: os.Getenv("HAL_PUBLIC_KEY"),
|
||||
Token: os.Getenv("HAL_TOKEN"),
|
||||
ServerIDs: serverIDs,
|
||||
OpenaiHalToken: os.Getenv("OPENAI_HAL"),
|
||||
|
||||
GeminiToken: os.Getenv("GEMINI_API_KEY"),
|
||||
HalResponsePercent: halResPercent,
|
||||
}
|
||||
}
|
||||
|
||||
type Env struct {
|
||||
AppID tempest.Snowflake
|
||||
PublicKey string
|
||||
Token string
|
||||
ServerIDs []tempest.Snowflake
|
||||
OpenaiHalToken string
|
||||
AppID tempest.Snowflake
|
||||
PublicKey string
|
||||
Token string
|
||||
ServerIDs []tempest.Snowflake
|
||||
OpenaiHalToken string
|
||||
GeminiToken string
|
||||
HalResponsePercent int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user