MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / CloseModelPipeline

Method CloseModelPipeline

ai-provider/local/executor.go:164–173  ·  view source on GitHub ↗

CloseModelPipeline 关闭当前模型所有管道

(model string)

Source from the content-addressed store, hash-verified

162
163// CloseModelPipeline 关闭当前模型所有管道
164func (e *AsyncExecutor) CloseModelPipeline(model string) {
165 e.mu.Lock()
166 defer e.mu.Unlock()
167 mp, ok := e.pipelines[model]
168 if !ok {
169 return
170 }
171 mp.Close()
172 delete(e.pipelines, model)
173}
174
175// StartMessageDistributor 启动消息分发器
176func (e *AsyncExecutor) StartMessageDistributor() {

Callers 3

StopPullFunction · 0.80
RemoveModelFunction · 0.80

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected