commandcode 0.1.9: a Go key the Provider API refuses ("Your Go plan doesn't include API access. Upgrade to Provider or higher …", yetone/magpie#969) is taken as Go's — kept so for its models and endpoint (in memory and saved with the key, as usage saves the plan it reads) and its chat completion is sent again to /alpha/generate. Before, a Go key whose plan wasn't known yet (billing/subscriptions slow past the wait or failing, nothing saved with the key yet, e.g. just added by API key) went to the Provider API and the refusal reached the agent. Other refusals go on as they came. go-refused.test.mjs is new (4 of its 5 fail on 0.1.8); bun test (all packages) and check.mjs commandcode pass. Not tried with a real Command Code Go account (none here).
This commit is contained in:
@@ -40,6 +40,10 @@ Keys don't expire, so there is nothing to refresh.
|
||||
|
||||
The plan is read from `/alpha/billing/subscriptions`. It is cached for 10
|
||||
minutes; after a failed read, the plugin tries again after 1 minute.
|
||||
When the plan isn't known yet and the Provider API refuses the key with
|
||||
"Your Go plan doesn't include API access", the key is taken as Go's from
|
||||
then on (and saved so with it), and a chat completion is sent again to
|
||||
`/alpha/generate`.
|
||||
|
||||
## Models
|
||||
|
||||
|
||||
Reference in New Issue
Block a user