CoolFace
Apppublic

kylinpoet163/scnet

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

SCNet OpenAI Compatible Proxy

OpenAI-compatible API proxy for SCNet.

Endpoints

  • POST /v1/chat/completions
  • GET /v1/models

Required Secrets

Set these in Hugging Face Space:

  • API_KEY: your own API key for protecting this proxy
  • SCNET_USERNAME: optional, SCNet username
  • SCNET_PASSWORD: optional, SCNet password
  • SCNET_MAX_SESSIONS: optional, default 10
  • VERBOSE: optional, false recommended

Example request

bash
curl -X POST "https://YOUR_USERNAME-YOUR_SPACE_NAME.hf.space/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [
      {"role": "user", "content": "你好"}
    ],
    "stream": false
  }'