--- title: Duck2api emoji: 🏆 colorFrom: pink colorTo: red sdk: docker pinned: false license: apache-2.0 short_description: duck 2 api service thumbnail: >- https://cdn-uploads.huggingface.co/production/uploads/6642196ec80d018c28a68e9a/PHwTcv57ZhgW7--5-HTRn.png --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference # dai ## huggingface访问 ``` bash curl --location 'https://NiansuhAI-dapi.hf.space/completions' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-4o-mini", "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}], "stream": true }' curl --location 'https://NiansuhAI-dapi.hf.space/api/v1/chat/completions' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-4o-mini", "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}], "stream": true }' curl --location 'https://NiansuhAI-dapi.hf.space/hf/v1/chat/completions' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-4o-mini", "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}], "stream": true }' ``` ## 支持的模型 - claude-3-haiku - llama-3.3-70b - mixtral-8x7b - gpt-4o-mini