WikiAPI-Katalogcloudcloud.config.update

cloud.config.update

POST /api/admin/cloud/config cloud

Cloud-KI-Konfiguration speichern

Hilfe

Speichert die Cloud-KI-Konfiguration. Bei maskiertem API-Key (********) wird der bestehende Key beibehalten. Klartext-Keys werden opportunistisch verschlüsselt.

Parameter

Name Typ Required Default Beschreibung
enabled boolean Nein False Cloud-KI aktiviert
provider string Nein openai KI-Provider (openai, anthropic)
api_key string Nein API-Schluessel (PASSWORD_MASK = beibehalten)
model string Nein LLM-Modellname
base_url string Nein Custom Base-URL
max_tokens integer Nein Max. Token pro Anfrage
temperature number Nein LLM-Temperatur (0.0-2.0)
routing_mode string Nein auto Routing-Modus (auto, always, never)
confidence_threshold number Nein Confidence-Schwelle fuer Cloud-Routing
min_relevant_chunks integer Nein Min. relevante Chunks fuer Routing
cloud_keywords array Nein Cloud-Routing Schluesselwoerter
monthly_limit_eur number Nein Monatliches Budget in EUR
alert_threshold_pct integer Nein Budget-Alert-Schwelle (%)

Rueckgabe

Bestätigung der Speicherung

Beispiel-Prompts

  • Aktiviere Cloud-KI mit Provider anthropic
  • Cloud-Konfiguration speichern
  • Setze Cloud-Budget auf 50 EUR

Confirmation

Diese Funktion erfordert eine Bestaetigung vor der Ausfuehrung.

Template: cloud-konfiguration aktualisieren

Changelog

Area: cloud_config | Action: update

HTTP-Request (curl)

curl -X POST 'http://HOST:8502/api/admin/cloud/config' \
  -H 'Cookie: kiara_admin_session=SESSION' \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": "...",
    "provider": "...",
    "api_key": "...",
    "model": "...",
    "base_url": "...",
    "max_tokens": "...",
    "temperature": "...",
    "routing_mode": "...",
    "confidence_threshold": "...",
    "min_relevant_chunks": "...",
    "cloud_keywords": "...",
    "monthly_limit_eur": "...",
    "alert_threshold_pct": "..."
  }'

Metadaten

raw_responseJa
Kategoriecloud