INNER CODE UNIT · TypeScript

modelOption

chaterm/Chaterm · src/main/agent/core/controller/index.ts:131

    const modelOption = (await getModelOptions()).find((model) => model.name === modelId)
    return buildApiConfigurationForProviderModel(base, modelProviderId, modelId, modelOption)
  }

  async initTask(
    hosts: Host[],
    task?: string,
    taskId?: string,
    contentParts?: ContentPart[],
    modelName?: string,
    workspace?: TaskWorkspace,
    dbContext?: DbTaskContext
  ) {
    const resolvedTaskId = taskId
    mark('chaterm/agent/willCreateTask')
    logger.info('Initializing task', {
      event: 'agent.task.init',
      taskId: resolvedTaskId || 'new',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…