- Добавлен провайдер Z.ai (GLM 4.5/4.7 Flash), общий пул моделей всех провайдеров в генерации вместо одного "активного" (адаптер резолвится на каждую модель отдельно)
- Каталог OpenRouter переведён на реально бесплатные модели
- Проверка работоспособности ключей и моделей провайдеров без расхода токенов (аналог проверки ключей Tavily), для Z.ai — через мини chat-completion, т.к. их /models не показывает бесплатные *-flash модели
- Optimistic concurrency при сохранении каталога моделей (защита от гонки/потери правок)
- Убраны декоративные "переменные" из шаблонов промптов
- Бриф для дизайна батч-генерации (docs/batch_generation_design_request.md), план обновлён
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Sidebar: manual collapse (214px <-> 64px) with persisted state, bold nav
icon set, real logo (icon anchor + "Торговый Проект" label) replacing the
red diamond placeholder. Icons stay pixel-fixed across the transition
(flex-none, no justify-content toggle) and labels collapse/expand via
animated max-width/opacity instead of instant mount/unmount, to fix the
jank reported when toggling. Toggle button now transitions its own
`left` in sync with the sidebar width instead of snapping.
- Sub-panels (Генерация/Товары/История/Шаблоны) smoothly resize with
available content width via useSubPanelWidth, plus a manual drag handle
(.resizeh) with the chosen width persisted across tabs.
- postprocessing.py: new _strip_redundant_description_heading filter for
a duplicate "Описание"/"Описание товара" heading right after the title.
- TemplatesPage now calls refreshPrompts() after create/save/delete so the
Generation page's template dropdown stays in sync without a reload.
Сегодня
Вчера
каждый из следующих 5 дней отдельным блоком
За последующую неделю для 7-13 дней
За последующие 16 дней для 14-29 дней
Все остальные
Для каждого блока добавлена кнопка Очистить, которая удаляет все записи этого периода. Если в очищаемом периоде была выбрана текущая запись, выбор сбрасывается корректно, после чего список перезагружается.
- Add POST /api/search-preview so the frontend can show the raw Tavily
search_context (same cache key as /generate, so no duplicate API call)
before kicking off the LLM calls. Generation form now has a collapsible
read-only "Данные из поиска" field under the prompt, filled after
pressing "Создать описание".
- sanitize_description(): strip a leading line that's just the bare
product name (plain or as a markdown heading), which some models prepend
before the actual description text.
- clean_text(): strip legacy %uXXXX escape-sequence runs that occasionally
show up verbatim in scraped page content — they bloat token count far
more than their character length suggests and were the direct cause of a
413 Payload Too Large from Groq for one model.
- Share the List/Switch/Grid results view (CardsView + useCardsView/useDraftEditing
hooks) between Генерация, Товары and История instead of the old per-tab
VariantsCard, so pin/edit/copy/delete and model navigation behave identically.
- Add "Общие" settings tab: default cards view and a fixed grid column count
(replaces the width-based auto-fill grid, which showed a different number
of tiles per row depending on viewport), both applied instantly on save.
- Fix "Поисковой API" -> "Поисковый API" typo and align sidebar list widths
(Генерация/Товары/Шаблоны промптов) to match История's 400px.
- Add OpenAI-compatible AI adapter (Groq/OpenRouter) with dynamic model list
and a Settings tab backed by a real search-config/API-key-status API.
- Redesign the Генерация tab to match the updated design handoff: fixed
form sub-panel + switchable List/Switch/Grid results views with model
navigation and per-card pin/edit/copy/delete.
- Fix "Повторить в Генерации" not carrying over additional_info (missing
column in the history SQL query/schema).
- Add a model-agnostic sanitize_description() postprocessing step to strip
<think> reasoning blocks and code-fence wrappers from generated text.