WikiAPI-Katalogcloudcloud.test

cloud.test

POST /api/admin/cloud/test cloud

Cloud-API-Verbindungstest

Hilfe

Sendet eine Test-Anfrage an die Cloud-API um die Verbindung und den API-Key zu prüfen.

Parameter

Name Typ Required Default Beschreibung
provider string Nein openai Cloud-Provider (openai, anthropic)
api_key string Ja API-Schluessel (Pflichtfeld)
model string Nein Modellname (optional)
base_url string Nein Custom Base-URL (optional)

Rueckgabe

Verbindungstest-Ergebnis (success, response, model, provider)

Beispiel-Prompts

  • Teste Cloud-API-Verbindung
  • Funktioniert der Cloud-API-Key?

HTTP-Request (curl)

curl -X POST 'http://HOST:8502/api/admin/cloud/test' \
  -H 'Cookie: kiara_admin_session=SESSION' \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'Content-Type: application/json' \
  -d '{
    "provider": "...",
    "api_key": "...",
    "model": "...",
    "base_url": "..."
  }'

Metadaten

raw_responseJa
Kategoriecloud