@companion-ai/feynman 0.5.54 → 0.5.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/RELEASES.md
CHANGED
|
@@ -6,6 +6,12 @@ GitHub release notes are generated from the matching `## vX.Y.Z` section in this
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## v0.5.55 - 2026-10-22
|
|
10
|
+
|
|
11
|
+
- **Clearer hints for two more OpenAI errors.**
|
|
12
|
+
- A project without access to a model (`403 ... does not have access to model`) now says the account can't use that model, instead of saying your credentials were rejected.
|
|
13
|
+
- "Request too large ... tokens per min" now says the request is bigger than the account's per-minute token limit, so retrying won't help.
|
|
14
|
+
|
|
9
15
|
## v0.5.54 - 2026-10-22
|
|
10
16
|
|
|
11
17
|
- **Two more model errors explain themselves.** When a run ends on an error, Feynman names the cause:
|
|
@@ -6,12 +6,15 @@ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
|
6
6
|
// developers; this names the cause and the fix instead.
|
|
7
7
|
export function modelErrorHint(provider: string, error: string): string | undefined {
|
|
8
8
|
const login = `feynman model login ${provider}`;
|
|
9
|
-
if (/model_not_supported|requested model is not supported|not available to new users|does not support tools/i.test(error)) {
|
|
9
|
+
if (/model_not_supported|requested model is not supported|does not have access to model|not available to new users|does not support tools/i.test(error)) {
|
|
10
10
|
return `Your ${provider} account can't use this model. Pick another with /model (or \`feynman model set\`).`;
|
|
11
11
|
}
|
|
12
12
|
if (/\b402\b|credit|billing|balance is insufficient|payment required/i.test(error)) {
|
|
13
13
|
return `Your ${provider} account is out of credits. Add credits, or switch provider with /model.`;
|
|
14
14
|
}
|
|
15
|
+
if (/request too large.{0,200}tokens per min/is.test(error)) {
|
|
16
|
+
return `This request is bigger than your ${provider} account's tokens-per-minute limit, so retrying won't help. Raise the limit with ${provider}, or switch model with /model.`;
|
|
17
|
+
}
|
|
15
18
|
if (/\b429\b|quota|rate.?limit|usage limit|resource.?exhausted|capacity|too many requests/i.test(error)) {
|
|
16
19
|
return `${provider} is rate-limiting this account or its quota is used up. Wait and retry, or switch model with /model.`;
|
|
17
20
|
}
|