Skip to content

fix: обновить Anthropic default и диагностику 410#686

Merged
xlabtg merged 2 commits into
xlabtg:mainfrom
konard:issue-685-7823dcb3516f
Jul 2, 2026
Merged

fix: обновить Anthropic default и диагностику 410#686
xlabtg merged 2 commits into
xlabtg:mainfrom
konard:issue-685-7823dcb3516f

Conversation

@konard

@konard konard commented Jul 2, 2026

Copy link
Copy Markdown

Что исправлено

Fixes #685

  • Обновил Anthropic и Claude Code default model с claude-opus-4-6 на claude-opus-4-8 в registry, schema, setup catalog и документации.
  • Добавил локальный override для claude-opus-4-8, потому что текущий @mariozechner/pi-ai@0.73.1 еще не содержит эту модель в generated registry.
  • Для Anthropic/Claude Code Opus 4.7/4.8 больше не передается temperature, чтобы не отправлять параметр, который новые Opus-модели отклоняют.
  • Ошибка 410 status code (no body) теперь распознается как недоступная/устаревшая модель и возвращает понятную подсказку обновить agent.model или повторно запустить teleton setup.

Как воспроизвести issue

  1. Настроить Anthropic provider с agent.model: "claude-opus-4-6".
  2. Отправить сообщение агенту.
  3. До исправления runtime пробрасывал общий API error: 410 status code (no body) без объяснения, что модель недоступна.

Проверка

  • npm test -- src/providers/__tests__/anthropic-provider.test.ts src/providers/__tests__/claude-code-provider.test.ts src/agent/__tests__/client-abort.test.ts src/agent/__tests__/runtime-retry.test.ts src/agent/__tests__/runtime-utils.test.ts src/config/__tests__/loader.test.ts src/webui/__tests__/setup-routes.test.ts
  • npm run typecheck
  • npm run lint
  • npm test
  • npm run format:check
  • npm run build:sdk
  • npm run build:backend

Документация

Проверил актуальный Anthropic model overview / migration docs: рекомендуемый текущий Opus ID — claude-opus-4-8, а миграционные заметки указывают обновляться с предыдущих Opus 4.x ID.

Adding .gitkeep for PR creation (default mode).
This file will be removed when the task is complete.

Issue: xlabtg#685
@konard konard changed the title [WIP] The agent returns an error fix: обновить Anthropic default и диагностику 410 Jul 2, 2026
@konard konard marked this pull request as ready for review July 2, 2026 16:29
@konard konard deployed to pr-preview July 2, 2026 16:31 — with GitHub Actions Active
@konard

konard commented Jul 2, 2026

Copy link
Copy Markdown
Author

Working session summary

Готово: PR #686 обновлен, переведен из draft в ready и запушен в ветку issue-685-7823dcb3516f: #686

Исправление: обновил Anthropic/Claude Code default на claude-opus-4-8, добавил локальный override модели, потому что текущий @mariozechner/pi-ai еще не знает этот ID, убрал отправку temperature для Opus 4.7/4.8 и добавил понятную диагностику для 410 status code, чтобы больше не было только generic API error. Сверялся с официальными Claude docs: обзор моделей указывает claude-opus-4-8, а migration guide отдельно фиксирует переход 4.7 -> 4.8 и удаление sampling params для Opus 4.7+ (platform.claude.com) .

Проверки локально прошли: build:sdk, build:backend, lint, format:check, полный npm test, targeted tests и typecheck. Свежий CI на коммите c66c0a3848a594dc342a393ff5adf4560ae46b23 тоже зеленый: CI, CodeQL, Benchmarks и Secret Scanning успешны; E2E пропущен правилами workflow. Рабочее дерево чистое.


This summary was automatically extracted from the AI working session output.

@konard

konard commented Jul 2, 2026

Copy link
Copy Markdown
Author

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Model: GPT-5.5
  • Provider: OpenAI
  • Public pricing estimate: $16.173552

📊 Context and tokens usage:

  • 407.1K / 200K (204%) input tokens, 37.9K / 128K (30%) output tokens

Total: (407.1K + 10.4M cached) input tokens, 37.9K output tokens, $16.173552 cost

🤖 Models used:

  • Tool: OpenAI Codex
  • Requested: gpt-5.5
  • Thinking level: max (~31999 tokens)
  • Model: GPT-5.5 (gpt-5.5)

📎 Log file uploaded as Gist (6663KB)


Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard

konard commented Jul 2, 2026

Copy link
Copy Markdown
Author

✅ Ready to merge

This pull request is now ready to be merged:

  • All CI checks have passed
  • No merge conflicts
  • No pending changes

Monitored by hive-mind with --auto-restart-until-mergeable flag

@xlabtg xlabtg merged commit 6da8d24 into xlabtg:main Jul 2, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The agent returns an error

2 participants