Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(pi): SuperGrok catalog addition 带上 Cindy 目录的计价
Dash2c5e6e62b706
diff --git a/apps/desktop/src/main/maker-host/__tests__/piNativeProviders.test.ts b/apps/desktop/src/main/maker-host/__tests__/piNativeProviders.test.tsindex c0332e864a..d42614adb8 100644--- a/apps/desktop/src/main/maker-host/__tests__/piNativeProviders.test.ts+++ b/apps/desktop/src/main/maker-host/__tests__/piNativeProviders.test.ts@@ -477,6 +477,7 @@ describe('buildPiNativeProvidersFromConfigs', () => {id: 'grok-4.6',wireId: 'grok-4.6',catalogAddition: true,+ cost: { input: 2, output: 6, cacheRead: 0.5, cacheWrite: 0 },});expect(xaiProvider?.models.find((model) => model.id === 'grok-4.6')?.api).toBeUndefined();expect(xaiProvider?.models.find((model) => model.id === 'grok-4.5')?.catalogAddition).toBeUndefined();diff --git a/apps/desktop/src/main/maker-host/pi-host.ts b/apps/desktop/src/main/maker-host/pi-host.tsindex 831936c94d..87445c9996 100644--- a/apps/desktop/src/main/maker-host/pi-host.ts+++ b/apps/desktop/src/main/maker-host/pi-host.ts@@ -512,7 +512,11 @@ export function buildPiSubscriptionNativeProviders(),}: {}),- ...(preserved?.cost ? { cost: { ...preserved.cost } } : {}),+ ...(preserved?.cost+ ? { cost: { ...preserved.cost } }+ : model.cost+ ? { cost: { ...model.cost } }+ : {}),...(preserved?.headers ? { headers: { ...preserved.headers } } : {}),...(preserved?.compat ? { compat: structuredClone(preserved.compat) } : {}),};