mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-21 05:32:53 +00:00
Providers: fix kimi fallback normalization
This commit is contained in:
committed by
scoootscooob
parent
9acb4c8fbc
commit
8633c7fa73
@@ -148,6 +148,11 @@ describe("resolveProviderCapabilities", () => {
|
||||
expect(usesMoonshotThinkingPayloadCompat("openai")).toBe(false);
|
||||
});
|
||||
|
||||
it("keeps the normalized kimi fallback aligned when plugin capabilities are unavailable", () => {
|
||||
resolveProviderCapabilitiesWithPluginMock.mockImplementationOnce(() => undefined);
|
||||
expect(usesMoonshotThinkingPayloadCompat("kimi-coding")).toBe(true);
|
||||
});
|
||||
|
||||
it("resolves transcript thought-signature and tool-call quirks through the registry", () => {
|
||||
expect(
|
||||
shouldSanitizeGeminiThoughtSignaturesForModel({
|
||||
|
||||
@@ -67,7 +67,7 @@ const PLUGIN_CAPABILITIES_FALLBACKS: Record<string, Partial<ProviderCapabilities
|
||||
moonshot: {
|
||||
openAiPayloadNormalizationMode: "moonshot-thinking",
|
||||
},
|
||||
"kimi-coding": {
|
||||
kimi: {
|
||||
openAiPayloadNormalizationMode: "moonshot-thinking",
|
||||
},
|
||||
opencode: {
|
||||
|
||||
Reference in New Issue
Block a user