mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 08:57:57 +00:00
feat: LuaJIT worker-pool VM, multimodal/disable-thinking passthrough, WebUI redesign, DeepSeek V4
This commit is contained in:
@ -98,9 +98,14 @@ func (c *Core) mergedSources() []config.Source {
|
||||
func (c *Core) rebuildRegistry() error {
|
||||
srcs := c.mergedSources()
|
||||
providers := make([]*provider.Provider, 0, len(srcs))
|
||||
adapterConcurrency := map[string]int{}
|
||||
for _, s := range srcs {
|
||||
providers = append(providers, provider.New(s, c.vm))
|
||||
if s.Adapter != "" {
|
||||
adapterConcurrency[s.Adapter] += s.MaxConcurrent
|
||||
}
|
||||
}
|
||||
c.vm.ConfigureConcurrency(adapterConcurrency)
|
||||
if c.registry == nil {
|
||||
c.registry = provider.NewRegistry(providers, c.cfg.DefaultModel)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user