mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-25 20:58:50 +01:00
fix: improve type checking for graphConfig in createRun function
This commit is contained in:
parent
4464b333e9
commit
3f1224e23e
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ export async function createRun({
|
|||
edges: agents[0].edges,
|
||||
};
|
||||
|
||||
if (agentInputs.length > 1 || ('edges' in graphConfig && graphConfig.edges.length > 0)) {
|
||||
if (agentInputs.length > 1 || ((graphConfig as MultiAgentGraphConfig).edges?.length ?? 0) > 0) {
|
||||
(graphConfig as unknown as MultiAgentGraphConfig).type = 'multi-agent';
|
||||
} else {
|
||||
(graphConfig as StandardGraphConfig).type = 'standard';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue