INNER CODE UNIT · TypeScript

refreshRoute

Core-Mate/OpenGUI · deepseek-harness-plugin/src/index.ts:658

  const refreshRoute = (): void => {
    const active = profile()
    if (active === undefined) {
      registration?.()
      registration = undefined
      registeredModel = undefined
      return
    }
    const model = configuredModel(current())?.id
    if (registration === undefined) registration = ctx.llm.registerAdapter([PROVIDER], adapter)
    else if (registeredModel !== model) registration.replace([PROVIDER])
    registeredModel = model
  }
  refreshRoute()

  installSettingsSection(ctx, NS, Config, baseConfig, {
    setSource(source) { current = source },
    onChange: refreshRoute,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…