דילוג לתוכן
NotHolyתיעוד

Playground

Chat completions

POST /v1/chat/completions בפורמט של OpenAI, עם סטרימינג או בלעדיו.

POSThttps://api.notholy.com/v1/chat/completions

נשמר רק בלשונית הדפדפן הזו ונשלח רק ל-api.notholy.com.

כדי לשלוח את הבקשה צריך להדביק מפתח API.
תגובה
אחרי שליחת בקשה, התגובה הגולמית תופיע כאן.

אותה בקשה עם curl

curl
curl -X POST https://api.notholy.com/v1/chat/completions \
  -H "Authorization: Bearer $NOTHOLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "notholy-specter",
  "messages": [
    {
      "role": "user",
      "content": "List three checks for an SSRF fix."
    }
  ],
  "max_tokens": 400
}'