@wrongstack/providers 0.1.9 → 0.2.0

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.
package/dist/index.d.ts CHANGED
@@ -90,6 +90,16 @@ interface OpenAIMessage {
90
90
  tool_calls?: OpenAIToolCall[];
91
91
  tool_call_id?: string;
92
92
  name?: string;
93
+ /**
94
+ * DeepSeek (and other OpenAI-compatible thinking-mode models) require the
95
+ * previous assistant's chain-of-thought to be echoed back on the next
96
+ * request as a top-level `reasoning_content` field on the assistant
97
+ * message — NOT inside individual tool_calls. Without it DeepSeek
98
+ * returns 400 "reasoning_content in the thinking mode must be passed
99
+ * back to the API". Vanilla OpenAI ignores this field, so emitting it
100
+ * unconditionally is safe.
101
+ */
102
+ reasoning_content?: string;
93
103
  }
94
104
  interface OpenAIContent {
95
105
  type: 'text' | 'image_url';
@@ -335,6 +345,7 @@ interface OpenAIStreamState {
335
345
  stopReason: StopReason;
336
346
  started: boolean;
337
347
  textOpen: boolean;
348
+ thinkingOpen: boolean;
338
349
  toolByIndex: Map<number, {
339
350
  id: string;
340
351
  name: string;
@@ -394,6 +405,8 @@ interface AnthropicBlock {
394
405
  content?: unknown;
395
406
  tool_use_id?: string;
396
407
  is_error?: boolean;
408
+ thinking?: string;
409
+ signature?: string;
397
410
  source?: {
398
411
  type?: 'base64' | 'url';
399
412
  media_type?: string;