feat: add Fireworks provider and simplify plugin setup loading

This commit is contained in:
Peter Steinberger
2026-04-05 07:42:15 +01:00
parent f842f518cd
commit d655a8bc76
62 changed files with 1096 additions and 880 deletions

View File

@@ -899,7 +899,7 @@ describe("runReplyAgent typing (heartbeat)", () => {
attempts: [
{
provider: "fireworks",
model: "fireworks/minimax-m2p5",
model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
error: "Provider fireworks is in cooldown (all profiles unavailable)",
reason: "rate_limit",
},
@@ -960,7 +960,7 @@ describe("runReplyAgent typing (heartbeat)", () => {
attempts: [
{
provider: "fireworks",
model: "fireworks/minimax-m2p5",
model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
error: "Provider fireworks is in cooldown (all profiles unavailable)",
reason: "rate_limit",
},
@@ -1034,7 +1034,7 @@ describe("runReplyAgent typing (heartbeat)", () => {
attempts: [
{
provider: "fireworks",
model: "fireworks/minimax-m2p5",
model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
error: "Provider fireworks is in cooldown (all profiles unavailable)",
reason: "rate_limit",
},
@@ -1097,7 +1097,7 @@ describe("runReplyAgent typing (heartbeat)", () => {
attempts: [
{
provider: "fireworks",
model: "fireworks/minimax-m2p5",
model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
error: "Provider fireworks is in cooldown (all profiles unavailable)",
reason: "rate_limit",
},
@@ -1177,7 +1177,7 @@ describe("runReplyAgent typing (heartbeat)", () => {
attempts: [
{
provider: "fireworks",
model: "fireworks/minimax-m2p5",
model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
error: "Provider fireworks is in cooldown (all profiles unavailable)",
reason: "rate_limit",
},
@@ -1299,7 +1299,7 @@ describe("runReplyAgent typing (heartbeat)", () => {
sessionId,
updatedAt: Date.now(),
sessionFile: transcriptPath,
fallbackNoticeSelectedModel: "fireworks/minimax-m2p5",
fallbackNoticeSelectedModel: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
fallbackNoticeActiveModel: "deepinfra/moonshotai/Kimi-K2.5",
fallbackNoticeReason: "rate limit",
};

View File

@@ -207,16 +207,18 @@ describe("/model chat UX", () => {
it("shows active runtime model when different from selected model", async () => {
const reply = await resolveModelInfoReply({
provider: "fireworks",
model: "fireworks/minimax-m2p5",
model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
defaultProvider: "fireworks",
defaultModel: "fireworks/minimax-m2p5",
defaultModel: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
sessionEntry: {
modelProvider: "deepinfra",
model: "moonshotai/Kimi-K2.5",
},
});
expect(reply?.text).toContain("Current: fireworks/minimax-m2p5 (selected)");
expect(reply?.text).toContain(
"Current: fireworks/accounts/fireworks/routers/kimi-k2p5-turbo (selected)",
);
expect(reply?.text).toContain("Active: deepinfra/moonshotai/Kimi-K2.5 (runtime)");
});

View File

@@ -746,7 +746,7 @@ describe("buildStatusMessage", () => {
updatedAt: 0,
modelProvider: "anthropic",
model: "claude-haiku-4-5",
fallbackNoticeSelectedModel: "fireworks/minimax-m2p5",
fallbackNoticeSelectedModel: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",
fallbackNoticeActiveModel: "deepinfra/moonshotai/Kimi-K2.5",
fallbackNoticeReason: "rate limit",
},