Repository navigation
fix: モデルAPIの失敗の原因を示し、入口が無い時は呼び出したAIに続きを任せる - #7
Merged
Merged
Conversation
- jev-ultrafastのフォークを1b39904に上げ、BrowserUseErrorに max_tokens_exceeded などの短い原因コードが載るようにした。 - スキルから、呼び出したAIに検索やブラウザ操作を控えさせる書き方を外した。no_entryの時は、AIが自分の手段で目的を続けてよい。jev-bookmarks自身の挙動は変えない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更
1b39904に上げた(上流へは Report a short provider error code when a model call fails browser-use/jev-ultrafast#190)。モデルAPIが失敗した時、BrowserUseErrorにmax_tokens_exceeded・authentication_errorなどの短い原因コードが載る。通信失敗にはReadTimeoutなどの例外の種類が載る。応答本文と認証値は出さない。no_entryの時は、AIが自分の手段で目的を続けてよい。jev-bookmarks自身は、従来どおり入口が無ければブラウザを操作せずにno_entryを返す。試験
uv run ruff check .、uv run pytest(21件、Windows専用1件はスキップ)、拡張のNode試験3件。1b39904単体: 試験48件が macOS・Linux・Windows で通過。実TypeSafeでHTTP 401 (authentication_error)とHTTP 400 (max_tokens_exceeded)を確認。🤖 Generated with Claude Code