Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(providers): narrow native image regression protocol
Dante096f99605c24
diff --git a/apps/desktop/src/main/maker-host/__tests__/piProviderTransport.test.ts b/apps/desktop/src/main/maker-host/__tests__/piProviderTransport.test.tsindex 82c69a9c45..3ad1dd234a 100644--- a/apps/desktop/src/main/maker-host/__tests__/piProviderTransport.test.ts+++ b/apps/desktop/src/main/maker-host/__tests__/piProviderTransport.test.ts@@ -357,11 +357,12 @@ it.each(['flag', 'modalities'])('prioritizes active catalog text-only %s over ait('keeps an undeclared active catalog model closed when its native descriptor explicitly disables images', () => {const native = PROVIDER_MODEL_CATALOG.providers.deepseek.find(row => row.supportsImageInput === false)!;expect(native.supportsImageInput).toBe(false);+ expect(native.execution.pi.api).toBe('openai-completions');const provider = buildUserProvider({ id: 'deepseek-catalog-undeclared', name: 'DeepSeek', runtimes: {pi: { baseUrl: native.upstream, wireProtocol: 'openai-chat', models: [{ id: native.id, name: native.name }] },} });const model = { ...provider.models.pi![0], supportsImageInput: undefined, modalities: undefined };- expect(invocationModelRecord(model, native.upstream, native.execution.pi.api)!.supportsImageInput).toBe(false);+ expect(invocationModelRecord(model, native.upstream, 'openai-completions')!.supportsImageInput).toBe(false);});