Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/src/agents/   (KI Agentensystem Version 22©)  Datei vom 26.3.2026 mit Größe 1 kB image not shown  

Quelle  models-config.providers.minimax.test.ts

  Sprache: JAVA
 

Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

import { describe, expect, it } from "vitest";

function buildMinimaxCatalog() {
  return [
    {
      id: "MiniMax-M2.7",
      cost: {
        input: 1.1,
        output: 4.4,
        cacheRead: 0.11,
        cacheWrite: 0.6875,
      },
    },
    {
      id: "MiniMax-M2.7-highspeed",
      cost: {
        input: 0.6,
        output: 2.4,
        cacheRead: 0.06,
        cacheWrite: 0.375,
      },
    },
  ];
}

describe("minimax provider catalog", () => {
  it("does not advertise the removed lightning model for api-key or oauth providers", () => {
    const providers = {
      minimax: { models: buildMinimaxCatalog() },
      "minimax-portal": { models: buildMinimaxCatalog() },
    };
    expect(providers?.minimax?.models?.map((model) => model.id)).toEqual([
      "MiniMax-M2.7",
      "MiniMax-M2.7-highspeed",
    ]);
    expect(providers?.["minimax-portal"]?.models?.map((model) => model.id)).toEqual([
      "MiniMax-M2.7",
      "MiniMax-M2.7-highspeed",
    ]);
  });

  it("keeps MiniMax highspeed pricing distinct in implicit catalogs", () => {
    const providers = {
      minimax: { models: buildMinimaxCatalog() },
      "minimax-portal": { models: buildMinimaxCatalog() },
    };
    const apiHighspeed = providers?.minimax?.models?.find(
      (model) => model.id === "MiniMax-M2.7-highspeed",
    );
    const portalHighspeed = providers?.["minimax-portal"]?.models?.find(
      (model) => model.id === "MiniMax-M2.7-highspeed",
    );

    expect(apiHighspeed?.cost).toEqual({
      input: 0.6,
      output: 2.4,
      cacheRead: 0.06,
      cacheWrite: 0.375,
    });
    expect(portalHighspeed?.cost).toEqual(apiHighspeed?.cost);
  });
});

¤ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet am  2026-04-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.