swarm-ui: drop an unused export and test the classifier settings logic
The runtime list was exported but only its type was used, so the type is now written out. The form's pure logic (draft, checks, request body, change detection) gets tests under node's built-in runner, run by the existing swarm-ui check.
This commit is contained in:
parent
a04096ea19
commit
93ae435287
4 changed files with 126 additions and 3 deletions
|
|
@ -8,8 +8,7 @@ export type Effort = (typeof EFFORTS)[number];
|
|||
|
||||
/** Which runtime a classification runs on: the claude CLI on the Anthropic
|
||||
* API key, or opencode on an ACP provider. */
|
||||
export const RUNTIMES = ["api-key", "acp"] as const;
|
||||
export type Runtime = (typeof RUNTIMES)[number];
|
||||
export type Runtime = "api-key" | "acp";
|
||||
|
||||
/** What the provider charges, in USD per million tokens. A cache price left
|
||||
* out counts as `input`. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue