mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-12-06 11:03:52 +00:00
This change adds the redesigned admin panel and the smart router decision model assist. It adds opt-in prompt-prefix caching per provider and cached-token pricing and metrics. With Redis, the metrics route reports fleet-wide values. The redis.sharedState switch shares six coordination states across replicas. PR CI grants actions read, which the shared go-pr workflow needs. The pull request description has the full list and the verification.
22 lines
705 B
TypeScript
22 lines
705 B
TypeScript
import { defineConfig } from '@playwright/test'
|
|
|
|
// PW_PORT sets the dev-server port; PW_REUSE=1 attaches to a running server (default: fail fast, so two runs cannot share one).
|
|
const PORT = Number(process.env.PW_PORT ?? 5199)
|
|
|
|
export default defineConfig({
|
|
testDir: './e2e',
|
|
testMatch: '*.spec.ts',
|
|
outputDir: '.screenshots/.pw-output',
|
|
fullyParallel: true,
|
|
workers: 4,
|
|
timeout: 120_000,
|
|
reporter: [['list']],
|
|
use: { baseURL: `http://localhost:${PORT}`, browserName: 'chromium' },
|
|
webServer: {
|
|
command: `npm run dev:mock -- --port ${PORT} --strictPort`,
|
|
url: `http://localhost:${PORT}/admin/`,
|
|
reuseExistingServer: process.env.PW_REUSE === '1',
|
|
timeout: 60_000,
|
|
},
|
|
})
|