Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Replacing a Discontinued Groq Model — How I Restored All AI‑Powered Features in VS

说明与用途

通过将已停用的 Groq 模型替换为 openai/gpt‑oss‑120b 并添加基于环境变量的配置,VS 的所有 AI 功能已恢复,代码更改最小化。

问题

The Groq "llama‑3.3‑70b‑versatile" model was retired, causing all AI helper endpoints in VS to return 404 errors and break features such as property description generation, rent‑price suggestions, and virtual‑tour script generation.

结果

All AI‑powered features in VS were restored by switching to an open‑source model, adding environment‑based configuration, and updating call sites with minimal code changes.

工作流

  • 1. Centralised model configuration by adding DEFAULT_MODEL from GROQ_MODEL env variable in groq.helper.ts.
  • 2. Updated helper to use chat/completions endpoint and include model in request body.
  • 3. Added optional options parameter for caller‑specific settings (e.g., temperature).
  • 4. Updated virtual‑tour service to pass higher temperature (0.9).
  • 5. Committed minimal changes (12 added, 3 removed).
  • 6. Deployed updated code, restoring AI features.

证据

The Groq “llama‑3.3‑70b‑versatile” model was retired on 16 Aug 2026, breaking every endpoint that relied on our AI helper.

来源

I swapped it for the open‑source “openai/gpt‑oss‑120b” model, added version‑guard logic and updated the virtual‑tour service, getting the IA pipeline back online in a single commit.

来源

  • 记录日期: 2026-09-06T02:06:49.929Z