Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

484 B
Raw Blame
import { request } from '@playwright/test'
import { authStatePath } from '../../fixtures/auth.ts'
import { apiURL } from '../../test-env.ts'
import { createConsoleClient } from './console-client.ts'

export async function createStandaloneConsoleSession() {
  const requestContext = await request.newContext({
    baseURL: apiURL,
    storageState: authStatePath,
  })

  return {
    client: createConsoleClient({ requestContext }),
    dispose: () => requestContext.dispose(),
  }
}