mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(ui): remove relay source logs column
This commit is contained in:
parent
e1c7d12df7
commit
9975fd4683
1 changed files with 0 additions and 22 deletions
|
|
@ -111,28 +111,6 @@ describe("view logs columns", () => {
|
|||
expect(screen.queryByText("LLM")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should render collector rows with relay metadata as relay logs", () => {
|
||||
const legacyCollectorLog = {
|
||||
...baseLog,
|
||||
request_id: "collector-01f159da",
|
||||
call_type: "completion",
|
||||
metadata: {
|
||||
...baseLog.metadata,
|
||||
app: "codex",
|
||||
source: "litellm-relay",
|
||||
},
|
||||
model: "codex-ai",
|
||||
request_tags: ["litellm-relay", "codex"],
|
||||
};
|
||||
|
||||
render(<DataTable data={[legacyCollectorLog]} columns={createColumns()} />);
|
||||
|
||||
expect(screen.getByText("litellm-relay")).toBeInTheDocument();
|
||||
expect(screen.getAllByText("Codex").length).toBeGreaterThan(0);
|
||||
expect(screen.getAllByRole("img", { name: "Codex logo" }).length).toBeGreaterThan(0);
|
||||
expect(screen.queryByText("LLM")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("should fall back to row api_key when relay metadata does not include a key hash", () => {
|
||||
render(<DataTable data={[relayLog]} columns={createColumns()} getRowId={(row) => row.request_id} />);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue