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": ["你好,世界"]
}'


令牌值获取方式:

相关推荐
测试199836 分钟前
单元测试、系统测试、集成测试的区别是什么?
自动化测试·软件测试·测试工具·单元测试·测试用例·集成测试·安全性测试
程序员三藏38 分钟前
Selenium无法定位元素的几种解决方案
自动化测试·软件测试·python·selenium·测试工具·职场和发展·测试用例
小陈的进阶之路2 小时前
postman/apifox接口测试
测试工具·postman
llilian_162 小时前
IRIG-B码产生器立足用户痛点,提供精准授时解决方案
大数据·数据库·功能测试·单片机·嵌入式硬件·测试工具
半个俗人20 小时前
06postman批量执行及参数化
测试工具·postman
紫丁香20 小时前
Selenium自动化测试详解1
python·selenium·测试工具·ui
软件测试君1 天前
自动化测试路线图之自动化测试完整指南
自动化测试·软件测试·测试工具·面试·职场和发展·单元测试·职场经验
半个俗人1 天前
05postman关联-常用的数据提取方式
测试工具·jmeter·postman·js
123过去1 天前
ike-scan使用教程
linux·测试工具
半个俗人1 天前
07.postman newman生成测试报告
测试工具·postman