oterm/tests/unit
Yiorgis Gozadinos c4d46ce293
Size the summarize tail from the built model and write summaries with the chat's settings
The context window only reached the summarize capability when a local
server reported one, so cloud models always fell back to keeping the
last 20 messages. get_agent now resolves the model before building the
agent and reads the window from its profile.

The summary run built its own agent with no model settings, so the
chat's temperature, thinking switch and openai-compat chat template
switch did not apply. The summary now uses the chat's parameters with
thinking off and no max_tokens, so a user cap cannot cut it short.
2026-09-27 13:56:10 +03:00
..
__init__.py Add unit-tier tests for agent, store, config, utils, providers 2026-04-24 20:06:56 +03:00
test_agent.py Size the summarize tail from the built model and write summaries with the chat's settings 2026-09-27 13:56:10 +03:00
test_capabilities.py Share the streaming loop between send and regenerate 2026-09-26 16:14:00 +03:00
test_cli.py Describe the CLI options and mask OLLAMA_API_KEY in --config 2026-09-26 16:44:14 +03:00
test_config.py Clean up stale config fields, CSS classes, and command descriptions 2026-04-25 00:06:16 +03:00
test_context_window.py Show context used against the model's context window 2026-09-27 13:04:06 +03:00
test_provider_settings.py Handle additional deprecations, rename appropriately providers according to the new pydantic-ai names 2026-05-22 11:35:11 +03:00
test_providers.py Simplify the codebase and remove comments with no use 2026-09-26 16:23:23 +03:00
test_providers_ollama.py Show context used against the model's context window 2026-09-27 13:04:06 +03:00
test_store.py Pre-select the provider of the last created chat 2026-07-31 17:12:47 +03:00
test_store_upgrades.py Qualify MCP tool names by server 2026-07-31 15:46:30 +03:00
test_types.py Yield (thinking, text) tuples from stream_agent 2026-04-24 22:11:03 +03:00
test_utils.py Simplify the codebase and remove comments with no use 2026-09-26 16:23:23 +03:00