mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-12 09:26:19 +00:00
fix: separate arcee auth envs from openrouter
This commit is contained in:
@@ -75,7 +75,7 @@ OpenClaw currently ships this bundled Arcee catalog:
|
||||
| `arcee/trinity-large-preview` | Trinity Large Preview | text | 128K | $0.25 / $1.00 | General-purpose; 400B params, 13B active |
|
||||
| `arcee/trinity-mini` | Trinity Mini 26B | text | 128K | $0.045 / $0.15 | Fast and cost-efficient; function calling |
|
||||
|
||||
When using OpenRouter, model refs are prefixed with `arcee/` (for example `arcee/arcee/trinity-large-thinking`).
|
||||
The same model refs work for both direct and OpenRouter setups (for example `arcee/trinity-large-thinking`).
|
||||
|
||||
The onboarding preset sets `arcee/trinity-large-thinking` as the default model.
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { resolveProviderPluginChoice } from "../../src/plugins/provider-auth-choice.runtime.js";
|
||||
import { resolveProviderAuthEnvVarCandidates } from "../../src/secrets/provider-env-vars.js";
|
||||
import { registerSingleProviderPlugin } from "../../test/helpers/plugins/plugin-registration.js";
|
||||
import arceePlugin from "./index.js";
|
||||
|
||||
@@ -67,6 +68,13 @@ describe("arcee provider plugin", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps direct Arcee auth env candidates separate from OpenRouter", () => {
|
||||
const candidates = resolveProviderAuthEnvVarCandidates();
|
||||
|
||||
expect(candidates.arcee).toEqual(["ARCEEAI_API_KEY"]);
|
||||
expect(candidates.openrouter).toEqual(["OPENROUTER_API_KEY"]);
|
||||
});
|
||||
|
||||
it("builds the direct Arcee AI model catalog", async () => {
|
||||
const provider = await registerSingleProviderPlugin(arceePlugin);
|
||||
expect(provider.catalog).toBeDefined();
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"enabledByDefault": true,
|
||||
"providers": ["arcee"],
|
||||
"providerAuthEnvVars": {
|
||||
"arcee": ["ARCEEAI_API_KEY", "OPENROUTER_API_KEY"]
|
||||
"arcee": ["ARCEEAI_API_KEY"]
|
||||
},
|
||||
"providerAuthChoices": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user