oneapi本地部署接口测试(curl命令方式+postman方式)

1. 基础对话模型测试

shell 复制代码
curl --location 'http://localhost:3001/v1/chat/completions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sk-3WksewG53qmvyHmQF3EcC2CfBfE443109c0a556704Ba760b' \
--data '{
    "model": "QwQ-32B",
    "stream": false,        
    "messages": [
        {"role": "user", "content": "你好,你是谁?"}
    ]
}'


2. 嵌入模型测试

shell 复制代码
curl --location 'http://localhost:3001/v1/embeddings' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sk-lTq3hlf8Usjov9g1A2617f29FdE24a6c9dCc8649BdF6A542' \
--data '{
    "model": "GLM-Embedding-2",
    "input": ["你好,世界"]
}'


令牌值获取方式:

相关推荐
小熊出擊15 小时前
【pytest】finalizer 执行顺序:FILO 原则
python·测试工具·单元测试·pytest
balance_rui15 小时前
操作技巧——vscode.git.
postman
云闲不收15 小时前
接口请求工具对比 apifox apipost swagger postman等
测试工具·postman
sitellla20 小时前
Testify Go测试工具包入门教程
git·测试工具·其他·golang
我的xiaodoujiao1 天前
从 0 到 1 搭建 Python 语言 Web UI自动化测试学习系列 9--基础知识 5--常用函数 3
前端·python·测试工具·ui
可可南木1 天前
ICT 数字测试原理 8 - -VCL 的测试参数
开发语言·功能测试·测试工具·pcb工艺
Apifox.1 天前
Apifox 9 月更新| AI 生成接口测试用例、在线文档调试能力全面升级、内置更多 HTTP 状态码、支持将目录转换为模块
前端·人工智能·后端·http·ai·测试用例·postman
加油20192 天前
爬虫框架: selenium API使用介绍
爬虫·selenium·测试工具
IDOlaoluo3 天前
Postman-win64-8.6.2-Setup安装教程(附详细步骤,Win64版Postman下载安装指南)
测试工具·postman
运维小菜鸟h3 天前
利用wxpython开发API接口调试工具,类似postman
测试工具·postman