File size: 790 Bytes
2440841
 
 
 
 
 
 
 
 
 
 
 
 
3db9312
 
 
 
 
 
 
 
 
 
 
2912f0f
 
 
 
 
 
 
 
3db9312
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: Apin
emoji: 🐠
colorFrom: red
colorTo: indigo
sdk: gradio
sdk_version: 5.5.0
app_file: app.py
pinned: false
short_description: test api n
---

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


## 用法
``` bash
curl --location 'https://sanbo1200-apin.hf.space/completions' \
--header 'Content-Type: application/json' \
--data '{
    "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你是谁"}],
    "stream": true
    }'


curl --location 'https://sanbo1200-apin.hf.space/completions' \
--header 'Content-Type: application/json' \
--data '{
    "messages": [{"role": "user", "content": "你是谁,你知道西红柿炒鸡蛋怎么做吗"}],
    "stream": true
    }'

```