curo1305
efc177a155
feat(07-03): AnthropicProvider singleton + output_config + truncation — D-03/D-07/D-12/D-13
- Delete MAX_AI_CHARS constant and _client() method from anthropic_provider.py
- Add self._client = AsyncAnthropic(...) singleton in __init__ (D-07)
- Add _truncate() with 60/40 split using self._context_chars (D-13)
- Add _CLASSIFICATION_SCHEMA and _SUGGESTIONS_SCHEMA module-level constants
- classify() and suggest_topics() pass output_config with json_schema format (D-03)
- stop_reason != "end_turn" degrades to parse_classification("") (T-07-08)
- Widen __init__ signature to (api_key, model, context_chars, base_url) (uniform ctor)
- Update ai/__init__.py to pass context_chars + base_url to AnthropicProvider
- Promote test_anthropic_structured_output + add test_anthropic_stop_reason_fallback
2026-06-04 19:10:05 +02:00
..
2026-06-04 19:10:05 +02:00
2026-06-04 18:27:49 +02:00
2026-06-04 18:46:11 +02:00
2026-06-04 18:27:49 +02:00
2026-06-03 18:48:47 +02:00
2026-06-04 18:46:11 +02:00
2026-06-04 18:58:19 +02:00
2026-06-02 16:10:35 +02:00
2026-06-02 16:10:35 +02:00
2026-06-04 19:10:05 +02:00
2026-05-24 11:30:56 +02:00
2026-05-25 18:50:50 +02:00
2026-06-03 18:47:49 +02:00
2026-06-04 18:20:38 +02:00
2026-06-04 18:50:01 +02:00
2026-05-22 08:53:28 +02:00
2026-06-03 18:47:43 +02:00
2026-06-04 18:58:19 +02:00