Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/VDM/VDMPP/concfactorialPP/   (Vienna Development Method ©)  Datei vom 13.4.2020 mit Größe 257 B image not shown  

SSL docker-openai-seed.ts

  Sprache: JAVA
 

import {
  applyProviderConfigWithDefaultModelPreset,
  type ModelDefinitionConfig,
  type OpenClawConfig,
} from "../../src/plugin-sdk/provider-onboard.ts";

export type { OpenClawConfig };

const DOCKER_OPENAI_MODEL_REF = "openai/gpt-5.4";
const DOCKER_OPENAI_BASE_URL =
  process.env.OPENCLAW_DOCKER_OPENAI_BASE_URL?.trim() || "http://127.0.0.1:9/v1";
const DOCKER_OPENAI_MODEL: ModelDefinitionConfig = {
  id: "gpt-5.4",
  name: "gpt-5.4",
  api: "openai-responses",
  reasoning: true,
  input: ["text""image"],
  cost: {
    input: 0,
    output: 0,
    cacheRead: 0,
    cacheWrite: 0,
  },
  contextWindow: 1_050_000,
  maxTokens: 128_000,
};

export function applyDockerOpenAiProviderConfig(
  config: OpenClawConfig,
  apiKey: string,
): OpenClawConfig {
  const seededConfig = applyProviderConfigWithDefaultModelPreset(config, {
    providerId: "openai",
    api: "openai-responses",
    baseUrl: DOCKER_OPENAI_BASE_URL,
    defaultModel: DOCKER_OPENAI_MODEL,
    defaultModelId: DOCKER_OPENAI_MODEL.id,
    aliases: [{ modelRef: DOCKER_OPENAI_MODEL_REF, alias: "GPT" }],
    primaryModelRef: DOCKER_OPENAI_MODEL_REF,
  });
  const openAiProvider = seededConfig.models?.providers?.openai;
  if (!openAiProvider) {
    throw new Error("failed to seed OpenAI provider config");
  }
  openAiProvider.apiKey = apiKey;
  return seededConfig;
}

Messung V0.5 in Prozent
C=99 H=98 G=98

¤ 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.0.14Bemerkung:  (vorverarbeitet am  2026-06-05) ¤

*Bot Zugriff






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.