Dashboard › opencode › Distillation
635ef714-b0e9-4541-8612-74ec90fe7b5d["lore_tm_v1_HQvFwwJpM0utonDwKtVgCyUVnW-teKhe1LdfDKBBWPU"]
Date: September 9, 2026
/home/byk/Code/opencode-v2-pilot/packages/ai/src/protocols/anthropic-messages.ts, at lines 35, 36, 37, 356, 475, 779, 785–787, 790, 794, 808, 814–815, 818, 828, 830, 841, 859, 862, 864, 867, 872, 874–875, 893, 948, 951, 967, 969–970, 973, 1067, 1092, 1102, 1548, 1639, 1646, 1676, and 1683./home/byk/Code/opencode-v2-pilot/packages/ai/src/protocols/anthropic-messages.ts defines const ADAPTER = "anthropic-messages" at line 35, exports DEFAULT_BASE_URL = "https://api.anthropic.com/v1" at line 36 and PATH = "/messages" at line 37, and re-exports the module as AnthropicMessages from "./anthropic-messages.js" at line 1683.request.model.route.endpoint.baseURL, api.kimi.com/coding, api.moonshot.ai/anthropic, api.moonshot.cn/anthropic, and exclusions for providers/models/base URLs containing xiaomi, mimo, or xiaomimimo.com at lines 779–790./home/byk/Code/opencode-v2-pilot/packages/ai/src/protocols/anthropic-messages.ts includes endsInServerToolUse at line 808, a Google Vertex special case for request.model.route.id === "google-vertex-messages" when the previous message role is "tool" at line 818, splitsLocalToolResults at line 828, const messages: AnthropicMessage[] = [] at line 859, iteration through request.messages.entries() at line 862, native system-update lowering via lowerNativeSystemUpdate(message, breakpoints) at line 867, and adjacent user-content merging at lines 872–875 and 967–970."Anthropic Messages assistant messages only support text, reasoning, and tool-call content for now" around line 948.lowerMessages(flattened.request, breakpoints) at line 1092 and includes the resulting messages in the request body at line 1102."Invalid anthropic/anthropic-messages stream event" at line 1548.transport at line 1639 is generic over Body extends Pick<AnthropicMessagesBody, "messages" | "context_management">; its logic checks whether any message content block has type === "compaction" at line 1646, and transport configuration uses baseURL: DEFAULT_BASE_URL at line 1676.