@vincemakes/kiso-provider-openai 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -312,6 +312,12 @@ function toOpenAIMessages(messages, systemPrompt) {
312
312
  function: { name: t.name, arguments: JSON.stringify(t.input) },
313
313
  };
314
314
  }),
315
+ // 自举 P1: DeepSeek's thinking mode REQUIRES the turn's
316
+ // reasoning back on follow-up requests (else 400) — the
317
+ // projection derived it from the thinking events; the compat
318
+ // wire field is reasoning_content. Real OpenAI never emits
319
+ // thinking events, so it never sees this field.
320
+ ...(msg.reasoning !== undefined ? { reasoning_content: msg.reasoning } : {}),
315
321
  });
316
322
  }
317
323
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-provider-openai",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "kiso OpenAI-compatible adapter \u2014 OpenAI + the compat family (GLM, Kimi, DeepSeek, OpenRouter) via base_url swap, reasoning dialects digested.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "test": "vitest run"
22
22
  },
23
23
  "dependencies": {
24
- "@vincemakes/kiso-core": "0.1.1",
24
+ "@vincemakes/kiso-core": "0.1.2",
25
25
  "openai": "^7.3.0"
26
26
  },
27
27
  "devDependencies": {