opencode-config/docs/decisions/047-pr-106-remove-deprecated-ai-provider.md
Sergey 7d730baa4c
chore(config): remove deprecated ai provider and add memory readme section (#106)
* chore(config): remove deprecated ai provider and add memory readme section

* docs(handoff): set PR number 106

* docs(project-map): update after structural changes

---------

Co-authored-by: opencode-agent <agent@opencode.local>
2026-07-27 02:23:33 +03:00

14 lines
No EOL
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ADR-047: Remove deprecated `new_api` AI provider
## Статус
Accepted (2026-07-26)
## Контекст
В `.opencode/opencode.json` присутствовал блок провайдера `new_api` (gemini-3.5-flash, `@ai-sdk/openai-compatible`), завязанный на env vars `AI_PROVIDER_BASE_URL` / `AI_PROVIDER_API_KEY`. Провайдер был deprecated: embeddings уже переведены на `OPENAI_*` env vars (PR #75), активный LLM-провайдер — `openrouter`. `new_api` не упоминался нигде кроме `opencode.json:15-43` — мёртвый код, создававший ложное впечатление доступной альтернативы и требовавший неиспользуемые env vars в `.env.example`.
## Решение
Удалить блок `new_api` из `provider` в `.opencode/opencode.json` и соответствующие `AI_PROVIDER_*` env vars из `.env.example`. Заодно уточнить комментарий `OPENCODE_MEMORY_REMOTE` — теперь optional (auto-setup при первом `memory-save`), а не required. Добавить секцию «Память»/«Memory» в `README.md` для onboarding.
## Альтернативы
- Оставить `new_api` как есть — сохраняет мёртвый код и неиспользуемые env vars, вводит в заблуждение новых пользователей. Отклонено: пользователь подтвердил удаление.
- Перевести `new_api` на `OPENAI_*` env vars вместо удаления — избыточно, `openrouter` уже покрывает LLM-провайдер.