INNER CODE UNIT · TypeScript

inheritedOptions

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

  const inheritedOptions = (options: AgentOptions): AgentOptions => inheritedAgentOptions(options)

  const upstreamRoute = (options: AgentOptions): ModelRoute | undefined => {
    let provider = options.provider?.trim()
    let model = options.model?.trim()
    if (provider === INHERITED_PROVIDER && model) {
      const decoded = decodeInheritedModel(model)
      provider = decoded.provider
      model = decoded.model
    }
    return provider && model ? { provider, model } : undefined
  }

  const currentCapability = async (options: AgentOptions, signal: AbortSignal): Promise<ModelCapability> => {
    const route = upstreamRoute(options)
    if (route === undefined) return 'unknown-unpatchable'
    if (route.provider === PROVIDER) return 'ready'
    let modalities: readonly ('text' | 'image')[] | undefined

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…