buildMistralModelDefinition (mistral/model-definitions.ts)

openclaw-zero-token · extensions/mistral/model-definitions.ts · typescript · MIT
ai, tag:knn-classified

Defines Mistral AI model configurations and related constants for SDK integration.

// Source: https://github.com/linuxhsj/openclaw-zero-token | License: MIT | Copyright 2025 Peter Steinberger
// Provided via justclaw.it.com; keep this notice with the code.
import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-shared";

export const MISTRAL_BASE_URL = "https://api.mistral.ai/v1";
export const MISTRAL_DEFAULT_MODEL_ID = "mistral-large-latest";
export const MISTRAL_DEFAULT_MODEL_REF = `mistral/${MISTRAL_DEFAULT_MODEL_ID}`;
export const MISTRAL_DEFAULT_CONTEXT_WINDOW = 262144;
export const MISTRAL_DEFAULT_MAX_TOKENS = 16384;
export const MISTRAL_DEFAULT_COST = {
  input: 0.5,
  output: 1.5,
  cacheRead: 0,
  cacheWrite: 0,
};

const MISTRAL_MODEL_CATALOG = [
  {
    id: "codestral-latest",
    name: "Codestral (latest)",
    reasoning: false,
    inp

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key