feat(provider.ollama): add chain-of-thought reasoning support to chat messages and Ollama provider

This commit is contained in:
2026-01-20 02:03:20 +00:00
parent 6c6652d75d
commit 9ad039f77b
4 changed files with 28 additions and 6 deletions

View File

@@ -8,6 +8,8 @@ export interface ChatMessage {
content: string;
/** Base64-encoded images for vision-capable models */
images?: string[];
/** Chain-of-thought reasoning for GPT-OSS models (e.g., Ollama) */
reasoning?: string;
}
/**
@@ -35,6 +37,8 @@ export interface StreamingChatOptions extends ChatOptions {
export interface ChatResponse {
role: 'assistant';
message: string;
/** Chain-of-thought reasoning from reasoning models */
reasoning?: string;
}
/**