feat: support ollama now (close #870)

This commit is contained in:
JustSong
2024-03-14 01:02:47 +08:00
parent 79d0cd378a
commit 2dcef85285
14 changed files with 313 additions and 1 deletions

View File

@@ -185,6 +185,10 @@ func GetTimeString() string {
return fmt.Sprintf("%s%d", now.Format("20060102150405"), now.UnixNano()%1e9)
}
func GenRequestID() string {
return GetTimeString() + GetRandomNumberString(8)
}
func Max(a int, b int) int {
if a >= b {
return a