Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(ai): add AI panel types for settings configuration

Steven Enamakele1d279f5e16b
diff --git a/app/src/components/settings/panels/ai/aiPanelTypes.ts b/app/src/components/settings/panels/ai/aiPanelTypes.ts
index a9c4c7ee10..ed3716ef58 100644
--- a/app/src/components/settings/panels/ai/aiPanelTypes.ts
+++ b/app/src/components/settings/panels/ai/aiPanelTypes.ts
@@ -382,32 +382,6 @@ export function inferRoutingMode(routing: RoutingMap): RoutingMode {
return 'custom';
}
-export function inferSharedModelRef(routing: RoutingMap): ProviderRef | null {
- const refs = ROUTING_WORKLOAD_IDS.map(id => routing[id]);
- const first = refs[0];
- if (!first) return null;
- if (refs.every(ref => providerRefSignature(ref) === providerRefSignature(first))) {
- return first.kind === 'openhuman' ? null : first;
- }
- return (
- refs.find(ref => ref.kind === 'cloud' || ref.kind === 'local' || ref.kind === 'default') ?? null
- );
-}
-
-export function routingWithAllWorkloads(next: ProviderRef): RoutingMap {
- return {
- chat: next,
- reasoning: next,
- agentic: next,
- coding: next,
- vision: next,
- memory: next,
- heartbeat: next,
- learning: next,
- subconscious: next,
- };
-}
-
export function defaultEndpointFor(slug: string): string {
const builtinEndpoint = defaultEndpointForBuiltinCloudProvider(slug);
if (builtinEndpoint) return builtinEndpoint;