波比打老黑 模型接口测试用例

4 阅读3分钟

Openai 非流式 saas

api格式stream类型模型名称curl
openai--saas-deepseek-v4-flashcurl -X POST "http://168.63.65.40:8090/llm-service/v1/chat/completions" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"messages": [{"role": "user","content": "1+1"}],"stream": false,"model": "saas-deepseek-v4-flash"}"
ath-saas-deepseek-v4-flashcurl -X POST "http://168.63.65.40:8090/llm-service/v1/messages" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"messages": [{"role": "user","content": "1+1"}],"stream": true,"model": "saas-deepseek-v4-flash"}"
openai-saas-glm-52curl -X POST "http://168.63.65.40:8090/llm-service/v1/chat/completions" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"messages": [{"role": "user","content": "1+1"}],"stream": false,"model": "saas-glm-52"}"
openai-多模态saas-kimi-k26curl -X POST "http://168.63.65.40:8090/llm-service/v1/chat/completions" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"messages":[{"role":"user","content":[{"type":"image_url","image_url":{"url":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAJ0lEQVR42u3NsQkAAAjAsP7/tF7hIASyp6lTCQQCgUAgEAgEgi/BAjLD/C5w/SM9AAAAAElFTkSuQmCC"}},{"type":"text","text":"What is the single dominant color of this image? Reply with ONLY the color name, nothing else."}]}],"stream":false,"model":"saas-kimi-k26","max_tokens":200}"
anthropic多模态暂时无法在飞书文档外展示此内容
openai/anthropic工具调用saas-deepseek-v4-flashcurl -X POST "http://168.63.65.40:8090/llm-service/v1/chat/completions" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"model":"saas-deepseek-v4-flash","temperature":0.8,"top_p":0.01,"max_tokens":1024,"stream":false,"messages":[{"role":"user","content":"南京的天气怎么样"}],"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}]}"
工具调用saas-deepseek-v4-flashcurl -X POST "http://168.63.65.40:8090/llm-service/v1/messages" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"model":"saas-deepseek-v4-flash","temperature":0.8,"top_p":0.01,"max_tokens":1024,"stream":false,"messages":[{"role":"user","content":"南京的天气怎么样"}],"tools":[{"name":"get_current_weather","description":"Get the current weather in a given location","input_schema":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}]}"
openai/ath结构化输出saas-deepseek-v4-flashcurl -X POST "http://168.63.65.40:8090/llm-service/v1/chat/completions" --header "Authorization: Bearer claudecode_desktop@026134_9b4cf47a" --header "Content-Type: application/json" --data "{"messages":[{"role":"user","content":"从用户请求中提取目标 CPU 和内存规格, 输出 JSON。\n用户请求: 把 IP 168.63.125.126 的容器纵向扩容到 8C 8Gi\n当前规格: CPU=8, 内存=8Gi\n输出: {\"target_cpu\": \"<如 4>\", \"target_mem\": \"<如 8Gi>\"}"}],"stream":false,"model":"saas-deepseek-v4-flash","temperature":0.0,"max_tokens":20480,"response_format":{"type":"json_object"}}"

es查询备忘录

多模态

curl --location --request POST 'http://10.102.65.59:36375/jaeger-span-2026-08-04/_search' \

--header 'Authorization: Basic dWF0LWVzLWRteGdsLXVzZXI6dWF0LWVzLWRteGdsLXB3ZA==' \

--header 'Content-Type: application/json' \

--data-raw '{

"query": {

"bool": {

"must": [

{

"term": {

"operationName": "llmservice-client-span"

}

},

{

"bool": {

"must": [

{

"nested": {

"path": "tags",

"query": {

"bool": {

"must": [

{

"term": {

"tags.key": "requestBody"

}

},

{

"match_phrase": {

"tags.value.text": "image_url"

}

}

]

}

}

}

}

]

}

}

]

}

},

"size": 50,

"track_total_hits": true

}'

结构化

curl --location --request POST 'http://10.102.65.59:36375/jaeger-span-2026-08-04/_search' \

--header 'Authorization: Basic dWF0LWVzLWRteGdsLXVzZXI6dWF0LWVzLWRteGdsLXB3ZA==' \

--header 'Content-Type: application/json' \

--data-raw '{

"query": {

"bool": {

"must": [

{

"term": {

"operationName": "llmservice-client-span"

}

},

{

"bool": {

"must": [

{

"nested": {

"path": "tags",

"query": {

"bool": {

"must": [

{

"term": {

"tags.key": "requestBody"

}

},

{

"match_phrase": {

"tags.value.text": "response_format"

}

}

]

}

}

}

}

]

}

}

]

}

},

"size": 50,

"track_total_hits": true

}'

工具调用

curl --location --request POST 'http://10.102.65.59:36375/jaeger-span-2026-08-04/_search' \

--header 'Authorization: Basic dWF0LWVzLWRteGdsLXVzZXI6dWF0LWVzLWRteGdsLXB3ZA==' \

--header 'Content-Type: application/json' \

--data-raw '{

"query": {

"bool": {

"must": [

{

"term": {

"operationName": "llmservice-client-span"

}

},

{

"bool": {

"must": [

{

"nested": {

"path": "tags",

"query": {

"bool": {

"must": [

{

"term": {

"tags.key": "requestBody"

}

},

{

"match_phrase": {

"tags.value.text": "tools"

}

}

]

}

}

}

}

]

}

}

]

}

},

"size": 50,

"track_total_hits": true

}'