fix
This commit is contained in:
parent
d8fd1ed936
commit
3dcf557e49
4
Chat.go
4
Chat.go
@ -301,7 +301,7 @@ func ClearChatHandler(c *fiber.Ctx) error {
|
|||||||
|
|
||||||
// Popover stuff
|
// Popover stuff
|
||||||
func LoadUsageKPIHandler(c *fiber.Ctx) error {
|
func LoadUsageKPIHandler(c *fiber.Ctx) error {
|
||||||
if !checkIfLogin() {
|
if !checkIfLogin() || !checkIfHaveKey() {
|
||||||
return c.SendString("")
|
return c.SendString("")
|
||||||
}
|
}
|
||||||
var TotalUsage float32
|
var TotalUsage float32
|
||||||
@ -388,7 +388,7 @@ func LoadKeysHandler(c *fiber.Ctx) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func LoadModelSelectionHandler(c *fiber.Ctx) error {
|
func LoadModelSelectionHandler(c *fiber.Ctx) error {
|
||||||
if !checkIfLogin() {
|
if !checkIfLogin() || !checkIfHaveKey() {
|
||||||
return c.SendString("")
|
return c.SendString("")
|
||||||
}
|
}
|
||||||
openaiExists, anthropicExists, mistralExists, groqExists, gooseaiExists, googleExists := getExistingKeys()
|
openaiExists, anthropicExists, mistralExists, groqExists, gooseaiExists, googleExists := getExistingKeys()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user