MCPcopy Create free account
hub / github.com/Quorinex/Kiro-Go / apiGetAccountModelsCached

Method apiGetAccountModelsCached

proxy/handler.go:3424–3430  ·  view source on GitHub ↗

apiGetAccountModelsCached 返回账号已缓存的模型列表(不实时拉取)

(w http.ResponseWriter, r *http.Request, id string)

Source from the content-addressed store, hash-verified

3422}
3423
3424func (h *Handler) microsoftSessionCanceled(sessionID string) bool {
3425 h.microsoftFlowMu.Lock()
3426 defer h.microsoftFlowMu.Unlock()
3427 return h.microsoftSessionCanceledLocked(sessionID, time.Now())
3428}
3429
3430func (h *Handler) microsoftSessionCanceledLocked(sessionID string, now time.Time) bool {
3431 h.cleanupMicrosoftCanceledLocked(now)
3432 expiry, exists := h.microsoftCanceled[strings.TrimSpace(sessionID)]
3433 return exists && now.Before(expiry)

Callers 1

handleAdminAPIMethod · 0.95

Calls 1

GetModelListMethod · 0.80

Tested by

no test coverage detected