feat: show context usage in tui status

This commit is contained in:
2026-05-23 07:15:03 +09:00
parent be8b10e759
commit a267ad8114
16 changed files with 213 additions and 4 deletions
+9
View File
@@ -2,42 +2,51 @@
[[model]]
id = "claude-sonnet-4-6"
provider = "anthropic"
context_window = 200000
[[model]]
id = "claude-sonnet-4-5"
provider = "anthropic"
context_window = 200000
[[model]]
id = "claude-opus-4-1"
provider = "anthropic"
context_window = 200000
# Ollama local (capability is router-ish / ollama handles its own models)
[[model]]
id = "llama3.1"
provider = "ollama-local"
context_window = 128000
[[model]]
id = "qwen2.5-coder"
provider = "ollama-local"
context_window = 128000
# Codex OAuth (ChatGPT backend via Responses API)
[[model]]
id = "gpt-5-codex"
provider = "codex-oauth"
context_window = 400000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
[[model]]
id = "gpt-5"
provider = "codex-oauth"
context_window = 400000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
# OpenRouter
[[model]]
id = "anthropic/claude-sonnet-4"
provider = "openrouter"
context_window = 200000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "budget_tokens", vision = true, prompt_caching = { kind = "auto" } }
[[model]]
id = "openai/gpt-5"
provider = "openrouter"
context_window = 400000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
+4
View File
@@ -5,6 +5,7 @@ scheme = "anthropic"
base_url = "https://api.anthropic.com"
auth_hint = { kind = "api_key", env = "INSOMNIA_API_KEY_ANTHROPIC" }
default_capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "budget_tokens", vision = true, prompt_caching = { kind = "explicit", max_breakpoints = 4 } }
default_context_window = 200000
[[provider]]
id = "ollama-local"
@@ -13,6 +14,7 @@ scheme = "anthropic"
base_url = "http://localhost:11434"
auth_hint = { kind = "none" }
default_capability = { tool_calling = "parallel", structured_output = "json_schema", vision = false, prompt_caching = { kind = "auto" } }
default_context_window = 128000
[[provider]]
id = "codex-oauth"
@@ -20,6 +22,7 @@ display_name = "ChatGPT (Codex OAuth)"
scheme = "openai_responses"
auth_hint = { kind = "codex_oauth" }
default_capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
default_context_window = 400000
[[provider]]
id = "openrouter"
@@ -28,3 +31,4 @@ scheme = "openai_chat"
base_url = "https://openrouter.ai/api/v1"
auth_hint = { kind = "api_key", env = "INSOMNIA_API_KEY_OPENROUTER" }
default_capability = { tool_calling = "parallel", structured_output = "json_schema", vision = true, prompt_caching = { kind = "auto" } }
default_context_window = 200000