Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function buildHTML(allResults, fixtureImages, { liveMode = false, liveStatus = n
tokens: r.tokens || r.data?.tokenTotals?.total,
perfSummary: r.perfSummary || r.data?.perfSummary || null,
system: r.data?.system || {},
serverParams: r.data?.serverParams || {},
tokenTotals: r.data?.tokenTotals || {},
suites: (r.data?.suites || []).map(s => ({
name: s.name,
Expand Down Expand Up @@ -492,6 +493,15 @@ function renderPerformance() {
let html = '<div class="header"><div class="page-title">⚡ Performance</div>';
html += '<div class="page-subtitle">' + esc(run.model || '?') + ' — ' + shortDate(run.timestamp) + '</div></div>';

if (run.serverParams && typeof run.serverParams === 'object' && Object.keys(run.serverParams).length > 0) {
let paramStr = '';
for (const k in run.serverParams) {
if (paramStr) paramStr += ' | ';
paramStr += '<b>' + esc(k) + '</b>: ' + esc(String(run.serverParams[k]));
}
html += '<div style="font-size:0.75rem; color:var(--text-dim); margin-left: 2rem; margin-top: 0.5rem; padding-bottom: 0.5rem;">[Server Params] ' + paramStr + '</div>';
}

// Hero cards
html += '<div class="hero-grid">';
const ttftAvg = perf?.ttft?.avgMs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,14 @@ function suite(name, fn) {
suites.push({ name, fn, tests: [] });
}

let targetServerParams = {};
try { targetServerParams = JSON.parse(process.env.AEGIS_SERVER_PARAMS || '{}'); } catch { }

const results = {
timestamp: new Date().toISOString(),
gateway: GATEWAY_URL,
vlm: VLM_URL || null,
serverParams: targetServerParams,
system: {},
model: {},
suites: [],
Expand Down Expand Up @@ -333,6 +337,9 @@ async function llmCall(messages, opts = {}) {
...(model && { model }),
...(temperature !== undefined && { temperature }),
...(opts.expectJSON && { top_p: 0.8 }),
// For JSON-expected tests on local servers, enable server-side JSON mode
// which activates prefix buffering to strip hallucinated artifacts
...(opts.expectJSON && !isCloudApi && { response_format: { type: 'json_object' } }),
...(opts.tools && { tools: opts.tools }),
// Model-family-specific params (e.g. reasoning_effort:'none' for Mistral).
// These are merged last so they take precedence over defaults.
Expand Down