mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-24 00:28:32 +00:00
ui fix
This commit is contained in:
@@ -295,7 +295,13 @@ export const getAgentCreateMetadata = async (): Promise<AgentCreateInfo[]> => {
|
||||
}
|
||||
|
||||
const jsonData: AgentCreateInfo[] = await response.json();
|
||||
return jsonData;
|
||||
|
||||
// Transform logo_url paths to be compatible with static UI
|
||||
// JSON uses "/assets/logos/..." but static UI needs "../ui/assets/logos/..."
|
||||
return jsonData.map(agent => ({
|
||||
...agent,
|
||||
logo_url: agent.logo_url?.replace(/^\/assets\/logos\//, "../ui/assets/logos/") || null,
|
||||
}));
|
||||
};
|
||||
|
||||
// Global variable for the header name
|
||||
|
||||
Reference in New Issue
Block a user