本教程所讲解的内容可适用于多个人工智能平台。虽然您在观看本教程视频时,我们使用的是阿里云百炼AI服务平台,但是如果您希望使用其他平台来学习本教程,可以通过以下平台名称,找到相应的介绍,并且进行替换即可。
平台名称:阿里云百炼AI服务平台
如需获取申请该平台API-Key指导,请查阅本站以下网页:
如何获取阿里云百炼人工智能大模型服务平台API-Key
该平台API端点地址:
dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
该平台服务器(Host)地址:
dashscope.aliyuncs.com
该平台人工智能服务API路径:
/compatible-mode/v1/chat/completions
学习本教程推荐使用模型:
qwen-flash
HTTP请求示例:
POST /compatible-mode/v1/chat/completions HTTP/1.1
Host: dashscope.aliyuncs.com
Content-Type: application/json
Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx
Content-Length: [系统自动计算]
{
"model": "qwen-flash",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hi. Who are you?"
}
],
"temperature": 0.7,
"max_tokens": 150
}平台名称:DeepSeek AI服务平台
该平台API端点地址:
api.deepseek.com/chat/completions
该平台服务器(Host)地址:
api.deepseek.com
该平台人工智能服务API路径:
/chat/completions
学习本教程推荐使用模型:
deepseek-chat
平台名称:字节跳动火山引擎AI服务平台
该平台API端点地址:
ark.cn-beijing.volces.com/api/v3/chat/completions
该平台服务器(Host)地址:
ark.cn-beijing.volces.com
该平台人工智能服务API路径:
/api/v3/chat/completions
学习本教程推荐使用模型:
doubao-seed-1-6-251015