🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ feat(model-runtime): add optionIndex to RouteAttemptResult (#12588)
YuTengjinga9511344f9cf
diff --git a/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts b/packages/model-runtime/src/core/RouterRuntime/createRuntime.tsindex cf219093999..044156fa85c 100644--- a/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts+++ b/packages/model-runtime/src/core/RouterRuntime/createRuntime.ts@@ -91,6 +91,7 @@ export interface RouteAttemptResult {durationMs: number;error?: unknown;model: string;+ optionIndex: number;providerId: string;remark?: string;routerId?: string;@@ -346,6 +347,7 @@ export const createRouterRuntime = ({channelId,durationMs: Date.now() - startTime,model,+ optionIndex: index,providerId: id,remark,routerId: matchedRouter.id,@@ -367,6 +369,7 @@ export const createRouterRuntime = ({durationMs: Date.now() - startTime,error,model,+ optionIndex: index,providerId: id,remark,routerId: matchedRouter.id,