ddghat / README.md
sanbo1200's picture
Update README.md
bdd7300 verified
|
raw
history blame
1.11 kB
metadata
title: ddgchat
emoji: 👀
colorFrom: blue
colorTo: yellow
sdk: docker
pinned: false
app_port: 7860
short_description: dd

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

infos

  • models
curl https://sanbo1200-ddghat.hf.space/models
  • Request
curl --location --request POST 'https://${|Embed this Space|--|Direct URL|}/completions' \
  --header 'Content-Type: application/json' \
  --data-raw '{
      "model": "gpt-4o-mini",
      "messages": [
          {
              "role": "user",
              "content": "What is the principle of Bitcoin?"
          }
      ],
      "stream": true
  }'

# local
curl --location --request POST 'http://0.0.0.0:8760/completions' \
  --header 'Content-Type: application/json' \
  --data-raw '{
      "model": "gpt-4o-mini",
      "messages": [
          {
              "role": "user",
              "content": "What is the principle of Bitcoin?"
          }
      ],
      "stream": true
  }'

support models

  • claude-3-haiku
  • llama-3.1-70b
  • mixtral-8x7b
  • gpt-4o-mini