mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
test(e2e): drop redundant comments from the call id logs helpers
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
837b8ea94d
commit
8e422da162
2 changed files with 0 additions and 5 deletions
|
|
@ -52,13 +52,10 @@ export async function sendChatCompletion(request: APIRequestContext, opts: ChatO
|
|||
}
|
||||
|
||||
export interface ServedChat {
|
||||
/** The completion id, which the Logs table calls Request ID. */
|
||||
requestId: string;
|
||||
/** The proxy's own correlation id, returned as x-litellm-call-id and used for OTEL traces. */
|
||||
callId: string;
|
||||
}
|
||||
|
||||
/** POST /v1/chat/completions and return both the completion id and the proxy's x-litellm-call-id. */
|
||||
export async function sendChatCompletionWithCallId(request: APIRequestContext, opts: ChatOptions): Promise<ServedChat> {
|
||||
const res = await postChatCompletion(request, opts);
|
||||
expect(res.ok(), `chat completion for ${opts.model} failed (${res.status()}): ${await res.text()}`).toBe(true);
|
||||
|
|
|
|||
|
|
@ -111,8 +111,6 @@ test.describe("Logs page", () => {
|
|||
await expect(search).toBeVisible({ timeout: 20_000 });
|
||||
await search.fill(callId);
|
||||
|
||||
// Searching by the header value finds the row; the row itself must show that same id so it can be
|
||||
// correlated with the OTEL trace by eye.
|
||||
const row = requestLogsRows(page).filter({ hasText: requestId });
|
||||
await expect(row, `no logs row for call id ${callId}`).toHaveCount(1, { timeout: 30_000 });
|
||||
await expect(row, `Logs row for ${requestId} does not display its x-litellm-call-id ${callId}`).toContainText(callId);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue