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


令牌值获取方式:

相关推荐
se-tester5 天前
JMeter、Postman 和 SoapUI 在做接口测试上的优势和缺点
测试工具·jmeter·接口测试·postman·soapui
xixi09245 天前
selenium IDE——command
selenium·测试工具
xixi09245 天前
selenium IDE安装使用教程
ide·selenium·测试工具
Wpa.wk6 天前
har文件转为接口自动化测试用例
运维·测试工具·自动化·测试用例·接口自动化
Wpa.wk6 天前
ubuntu22桌面版安装
经验分享·测试工具
脑花儿6 天前
Dify平台聊天助手 API调用案例
api·postman·dify
007张三丰6 天前
软件测试专栏(6/20):Selenium从0到1实战指南:元素定位、等待机制与框架封装
selenium·测试工具
测试老哥6 天前
如何使用Postman做接口测试?
自动化测试·软件测试·python·测试工具·测试用例·接口测试·postman
安全不再安全6 天前
某驱动任意读漏洞分析 - 可用于游戏内存数据读取
c语言·测试工具·安全·游戏·网络安全