teapot-coding-agent 0.37.208 → 0.37.209
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/dist/master.js
CHANGED
|
@@ -1538,12 +1538,19 @@ When this task is done (or truly blocked), call finish() with a summary for @${p
|
|
|
1538
1538
|
const prov = this.config.providers?.[providerName];
|
|
1539
1539
|
if (!prov?.baseUrl)
|
|
1540
1540
|
throw new Error(`unknown provider: ${providerName}`);
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1541
|
+
/**
|
|
1542
|
+
* Re-derive like every other path that builds an agent's llm (`llmFor`, used at boot and by provider
|
|
1543
|
+
* edits), so the applied config carries the provider's key pool and its CURRENT pool index — a raw
|
|
1544
|
+
* `prov.apiKey` froze the agent on the first key with no way to rotate on a 429. An operator's model
|
|
1545
|
+
* pick overrides the provider default; the previous agent model does not carry over to a provider switch.
|
|
1546
|
+
*/
|
|
1547
|
+
const acFor = this.config.agents.find((a) => a.id === id);
|
|
1548
|
+
llm = this.llmFor({
|
|
1549
|
+
id,
|
|
1550
|
+
workspace: acFor?.workspace ?? "",
|
|
1551
|
+
provider: providerName,
|
|
1552
|
+
model: model || undefined,
|
|
1553
|
+
});
|
|
1547
1554
|
}
|
|
1548
1555
|
else {
|
|
1549
1556
|
llm = { ...agent.llm };
|