Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
9668c76
Thinking for deepseek and openrouter providers
ferenci84 Jun 3, 2025
973575b
fix: messages array is modified as a side-effect
ferenci84 Jul 30, 2025
430acab
Merge branch 'main' into thinking_for_deepseek_and_openrouter
ferenci84 Aug 10, 2025
cf30a20
fix formatting and type errors
ferenci84 Aug 10, 2025
8de06cf
Merge branch 'main' into thinking_for_deepseek_and_openrouter
ferenci84 Aug 29, 2025
101d696
Add type annotations for reasoning fields in OpenAI chunk processing
ferenci84 Aug 30, 2025
0d7c461
Handle thinking blocks for openaiAdapter
ferenci84 Aug 30, 2025
c1d8503
Optimize chat stream processing by replacing string concatenation wit…
ferenci84 Aug 30, 2025
4bd8775
Add support for Claude reasoning blocks with signature handling
ferenci84 Sep 2, 2025
953059e
Add reasoning_details support for thinking messages in OpenAI type co…
ferenci84 Sep 2, 2025
32a5a6e
Optionally preserve reasoning, improve the handling of reasoning_details
ferenci84 Sep 3, 2025
72bba45
Remove debug console logs from reasoning details merging
ferenci84 Sep 3, 2025
48054dc
Remove reasoning content for Claude models when no signature is prese…
ferenci84 Sep 3, 2025
c3ab853
remove forceStreamChat flag and simplify streaming logic in BaseLLM
ferenci84 Sep 21, 2025
994968b
remove preserveReasoning option and always preserve reasoning blocks
ferenci84 Sep 22, 2025
920eaee
Responses API: apply net changes from 95f076b74^..8bd85e2fd as one co…
ferenci84 Sep 22, 2025
025de14
add support for provider-specific reasoning fields in LLM implementat…
ferenci84 Sep 22, 2025
ea35090
Merge branch 'thinking_for_deepseek_and_openrouter' into responses_api_2
ferenci84 Sep 22, 2025
50e6080
Merge branch 'main' into responses_api_2
ferenci84 Sep 22, 2025
39a7392
Merge branch 'main' into responses_api_2
Patrick-Erichsen Oct 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,15 @@ export interface ToolResultChatMessage {
role: "tool";
content: string;
toolCallId: string;
/** Arbitrary per-message metadata (IDs, provider-specific info, etc.) */
metadata?: Record<string, unknown>;
}

export interface UserChatMessage {
role: "user";
content: MessageContent;
/** Arbitrary per-message metadata (IDs, provider-specific info, etc.) */
metadata?: Record<string, unknown>;
}

export interface ThinkingChatMessage {
Expand All @@ -372,6 +376,12 @@ export interface ThinkingChatMessage {
signature?: string;
redactedThinking?: string;
toolCalls?: ToolCallDelta[];
reasoning_details?: {
signature?: string;
[key: string]: any;
}[];
/** Arbitrary per-message metadata (IDs, provider-specific info, etc.) */
metadata?: Record<string, unknown>;
}

/**
Expand Down Expand Up @@ -400,11 +410,15 @@ export interface AssistantChatMessage {
content: MessageContent;
toolCalls?: ToolCallDelta[];
usage?: Usage;
/** Arbitrary per-message metadata (IDs, provider-specific info, etc.) */
metadata?: Record<string, unknown>;
}

export interface SystemChatMessage {
role: "system";
content: string;
/** Arbitrary per-message metadata (IDs, provider-specific info, etc.) */
metadata?: Record<string, unknown>;
}

export type ChatMessage =
Expand Down
Loading
Loading