mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
feat(core): configure Anthropic cache breakpoints with compatibility.cacheFormat (#54945)
This commit is contained in:
committed by
GitHub
Unverified
parent
6a12383d3e
commit
69a71426ce
@@ -166,6 +166,8 @@ export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning
|
||||
|
||||
export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens"
|
||||
|
||||
export type ModelCacheFormat = "anthropic" | "alibaba"
|
||||
|
||||
export type ModelCapabilities = { tools: boolean; input: Array<string>; output: Array<string> }
|
||||
|
||||
export type MoneyUSDPerMillionTokens = number
|
||||
@@ -632,6 +634,7 @@ export type ModelCompatibility = {
|
||||
requireFinishReason?: boolean
|
||||
requireAssistantAfterTool?: boolean
|
||||
supportsPromptCacheKey?: boolean
|
||||
cacheFormat?: ModelCacheFormat
|
||||
supportsThinkingBlockBinding?: boolean
|
||||
supportsEffortUpdates?: boolean
|
||||
}
|
||||
@@ -643,6 +646,7 @@ export type ProviderCompatibility = {
|
||||
requireFinishReason?: boolean
|
||||
requireAssistantAfterTool?: boolean
|
||||
supportsPromptCacheKey?: boolean
|
||||
cacheFormat?: ModelCacheFormat
|
||||
}
|
||||
|
||||
export type ModelCost = {
|
||||
|
||||
Reference in New Issue
Block a user