pub struct AnthropicSettings {
pub base_url: String,
pub thinking_budget_tokens: Option<u32>,
}Fields§
§base_url: StringBase URL for the Anthropic HTTP API. Defaults to the public endpoint;
override via CAPO_ANTHROPIC_BASE_URL env or anthropic.base_url in
settings.json to route through a corporate proxy or test server.
Only consulted when model.provider == "anthropic" (CLI providers
shell out to their own binaries and ignore this).
thinking_budget_tokens: Option<u32>Extended-thinking budget in tokens. None (default) disables extended
thinking entirely — Anthropic returns only a regular assistant text
block and no thinking_delta SSE events. Some(N) enables extended
thinking with a budget of N tokens (Anthropic-recommended range:
1024-32000). When set, CoreEvent::ThinkingChunk/ThinkingDone fire
during streaming and capo renders the v0.11.0 live thinking block.
To actually see the live block in the TUI, also set
ui.hide_thinking_blocks = false (which defaults to true).
Only consulted when model.provider == "anthropic". Non-Anthropic
providers (OpenAI / Gemini / CLI providers) silently ignore this.
Trait Implementations§
Source§impl Clone for AnthropicSettings
impl Clone for AnthropicSettings
Source§fn clone(&self) -> AnthropicSettings
fn clone(&self) -> AnthropicSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AnthropicSettings
impl Debug for AnthropicSettings
Source§impl Default for AnthropicSettings
impl Default for AnthropicSettings
Source§impl<'de> Deserialize<'de> for AnthropicSettings
impl<'de> Deserialize<'de> for AnthropicSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for AnthropicSettings
impl PartialEq for AnthropicSettings
Source§fn eq(&self, other: &AnthropicSettings) -> bool
fn eq(&self, other: &AnthropicSettings) -> bool
self and other values to be equal, and is used by ==.