simi0 / README.md
sanbo
update sth. at 2024-12-18 21:12:54
482079b
|
raw
history blame
1.07 kB
---
title: dd
emoji: 🐲
colorFrom: indigo
colorTo: blue
sdk: docker
pinned: true
app_port: 7860
short_description: dd
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# 请求
* 获取模式
``` bash
curl https://sanbo1200-ddghat.hf.space/models
```
* 发起对话请求
``` bash
curl --location --request POST 'https://sanbo1200-ddghat.hf.space/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "你是什么模型?你的知识库截止到什么时间?"
}
],
"stream": true
}'
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": "你是什么模型?你的知识库截止到什么时间?"
}
],
"stream": true
}'
```