mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 20:23:46 +08:00
Token expired time fucntion is ready
This commit is contained in:
@@ -2,7 +2,6 @@ package utils
|
||||
|
||||
import (
|
||||
"math/rand"
|
||||
"openai/types"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -40,12 +39,3 @@ func ContainsStr(slice []string, item string) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func ContainUser(slice []types.User, user string) bool {
|
||||
for _, e := range slice {
|
||||
if e.Name == user {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user