mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
ui fix
This commit is contained in:
parent
2027ee7f85
commit
17ce970d99
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue