AI
你好,有什么可以帮你的?
就绪
在线测试天翼云大模型接口
# 非流式 curl 'https://tianyi-proxy.aiwilddynasty.workers.dev/v1/chat/completions' \ -H 'Authorization: Bearer YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"你好"}]}' # 流式 curl 'https://tianyi-proxy.aiwilddynasty.workers.dev/v1/chat/completions' \ -H 'Authorization: Bearer YOUR_KEY' \ -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"你好"}],"stream":true}'
| 参数 | 类型 | 说明 |
|---|---|---|
model | String | 模型 ID(必填) |
messages | Array | 对话消息(必填) |
stream | Boolean | 流式输出,默认 false |
temperature | Float | 温度 [0,2],默认 0.6 |
max_tokens | Int | 最大长度,默认 16384 |
thinking | Object | 思考模式 {"type":"enabled"} |