fix(api): enhance model availability probing with backoff and caching mechanisms (#2231)
* fix(api): enhance model availability probing with backoff and caching mechanisms * fix(lint): resolve gci and predeclared issues in model probe * fix(api): address copilot review feedback on probe cache key and test stability * fix(api): reduce probe cache key fragmentation
This commit is contained in:
3 files changed
+612
-8
No files matched your search
@@ -20,10 +20,14 @@ func resetModelProbeHooks(t *testing.T) {
|
||||
origTCPProbe := probeTCPServiceFunc
|
||||
origOllamaProbe := probeOllamaModelFunc
|
||||
origOpenAIProbe := probeOpenAICompatibleModelFunc
|
||||
origNow := modelProbeNowFunc
|
||||
resetModelProbeCache()
|
||||
t.Cleanup(func() {
|
||||
probeTCPServiceFunc = origTCPProbe
|
||||
probeOllamaModelFunc = origOllamaProbe
|
||||
probeOpenAICompatibleModelFunc = origOpenAIProbe
|
||||
modelProbeNowFunc = origNow
|
||||
resetModelProbeCache()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user