()
| 137 | } |
| 138 | |
| 139 | func GetSessionCache() SessionServiceCacheInterface { |
| 140 | if sessionServices == nil { |
| 141 | sessionServices = &SessionService{cache: cache.New(time.Hour*12, time.Hour*1)} |
| 142 | } |
| 143 | return sessionServices |
| 144 | } |
| 145 | |
| 146 | func getStrPoolTotalLength(strPool []openai.Messages) int { |
| 147 | var total int |
nothing calls this directly
no outgoing calls
no test coverage detected