Skip to content
Merged
Changes from all commits
Commits
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
18 changes: 16 additions & 2 deletions src/types/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,20 @@ export type AzureClientOptions = Partial<OpenAIChatInput> &
} & BaseChatModelParams & {
configuration?: OAIClientOptions;
};
export type ThinkingConfig = AnthropicInput['thinking'];
/**
* Controls whether Claude's reasoning content is returned in adaptive
* thinking responses. Added for Claude Opus 4.7, which omits thinking by
* default unless the caller opts in with `'summarized'`.
* @see https://platform.claude.com/docs/en/about-claude/models/whats-new-claude-4-7#thinking-content-omitted-by-default
*/
export type ThinkingDisplay = 'summarized' | 'omitted';
export type ThinkingConfigAdaptive = {
type: 'adaptive';
display?: ThinkingDisplay;
};
export type ThinkingConfig =
| NonNullable<AnthropicInput['thinking']>
| ThinkingConfigAdaptive;
export type ChatOpenAIToolType =
| BindToolsInput
| OpenAIClient.ChatCompletionTool;
Expand All @@ -60,7 +73,8 @@ export type GoogleThinkingConfig = {
thinkingLevel?: string;
};
export type OpenAIClientOptions = ChatOpenAIFields;
export type AnthropicClientOptions = AnthropicInput & {
export type AnthropicClientOptions = Omit<AnthropicInput, 'thinking'> & {
thinking?: ThinkingConfig;
promptCache?: boolean;
};
export type MistralAIClientOptions = ChatMistralAIInput;
Expand Down
Loading