switch llm to gemini

This commit is contained in:
unintendedfraud
2025-04-27 21:53:31 +02:00
parent 1f2411b6bf
commit 07397d4d8b
7 changed files with 256 additions and 39 deletions
Vendored
+16 -5
View File
@@ -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
}