Pi: paused model calls are reported as "not signed in" when the model's provider comes from an extension
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 73/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
まず Pi セッション開始通知と Pi 関連の te doctor 出力を見つけ、次にそれらのメッセージを作成し、sidecall.py でサインイン検出を処理するコードを読みます。両方のメッセージに pi_extensions と pi_cli を記載するよう更新します。どちらのメッセージからでもユーザーがこれらの設定を見つけられれば、issue は完了です。報告者は PR を開く予定なので、着手前に関連する作業がないか確認してください。
索引モデルが issue の本文から書いたものです。
説明
On Pi, the plugin's model calls get paused as "not signed in" when Pi is signed in, but the model's provider comes from an extension:
TokenEconomizer: the plugin's own model calls go through `pi -p`, which answered that it is not signed in, so they are paused; facts that need no model call are still learned, and the loop guard redirects only at its backstop. `/te config set microskills=on` (or `loopguard=on`) tries again.
The calls run with --no-extensions, so the provider is not registered in them and Pi (1.5.2) answers:
No API key found for the selected model.
Use /login to log into a provider via OAuth or API key. See:
<docs>/providers.md
<docs>/models.md
/login matches _SIGNED_OUT_RE in sidecall.py, so the calls are paused, and both the session start notice and te doctor say that Pi is not signed in. config set microskills=on only pauses them again at the next call.
The settings from #96 fix it (pi_extensions, and pi_cli as well in my case, since the first pi on my PATH is a wrapper), but nothing in the notice or in te doctor points to them. errors.log did not help either: the 300 characters it keeps were the two docs paths and the session header from stdout, so the "No API key found" line was cut off.
I'd suggest naming pi_extensions and pi_cli in the Pi notice and in the doctor line. I'll open a PR for that.
A side note: Pi writes "for the selected model" only when it does not know the provider, otherwise it names it (No API key found for ${provider}.). So the two cases could be told apart if you prefer a more precise message.
Seen on main (1bfeccd) with Pi 1.5.2 on macOS.
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 500
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 124
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/TokenEconomizer のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/TokenEconomizer#264 ·
メンテナーはふだん 1 日以内に返信
-
TokenEconomizer: repository-planted code runs in the plugin process; tmp writes follow symlinks対応中かも @kevinveenbirkenbach が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
microsoft/TokenEconomizer#260 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
microsoft/TokenEconomizer#232 ·
メンテナーはふだん 1 日以内に返信
-
CommandCode supportオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
microsoft/TokenEconomizer#205 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
microsoft/TokenEconomizer#193 ·
メンテナーはふだん 1 日以内に返信
microsoft/TokenEconomizer の issue をすべて見る
似ている issue
-
[Bug]: reme CLI crashes when the running server used a relative config path対応中かも @nurlanmnn が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/ReMe#770 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 67/100
sickn33/agentic-awesome-skills#2437 ·
メンテナーはふだん 1 日以内に返信
-
site-bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ethereum/consensus-specs#5846 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
BrainLesion/BraTS#200 ·