docs+perf: 定位 API 慢的真实瓶颈并移除 new-api 残留

- 新增 docs/6 openclaw-API响应性能分析与优化.md:两天 419 次调用 / 69 段交互实测,
  deepseek-flash p50 302ms 而模型耗时仅占 5.4%,94.6% 花在串行工具循环;
  new-api 慢 5 倍(p50 1463ms)已消除;含 P0/P1/P2 优化建议与未验证项声明
- 新增 scripts/perf-analyze.py:复现时间预算分析的配套脚本
- 5 个 agent 的 models.json 移除残留 new-api provider(含指向 192.168.2.74:3000
  与 100.115.195.188:3000 的条目及明文 key),主模型回退 deepseek-flash
- README 登记第 6 份文档
This commit is contained in:
yangxuan
2026-09-16 16:23:32 +08:00
parent 5ac4289f66
commit 5328320396
8 changed files with 417 additions and 852 deletions
-289
View File
@@ -138,295 +138,6 @@
}
}
]
},
"qwen35-plus": {
"baseUrl": "http://192.168.2.74:3000/v1",
"apiKey": "sk-vaYyq9RwzyLlvAvHHUXzOTWkbioP76YW58vKuplq2npSkfZr",
"api": "openai-completions",
"request": {
"allowPrivateNetwork": true
},
"models": [
{
"id": "qwen3.7-max",
"name": "Qwen 3.7 Max",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768
},
{
"id": "deepseek-v4-pro",
"name": "DeepSeek V4 Pro",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768
},
{
"id": "deepseek-v4-flash",
"name": "DeepSeek V4 Flash",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 8192
},
{
"id": "glm-5.1",
"name": "GLM 5.1",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768
},
{
"id": "kim-k2.6",
"name": "Kimi K2.6",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768
},
{
"id": "qwen3.5-plus",
"name": "Qwen 3.5 Plus",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768
}
]
},
"new-api": {
"baseUrl": "http://192.168.2.74:3000/v1",
"apiKey": "sk-vaYyq9RwzyLlvAvHHUXzOTWkbioP76YW58vKuplq2npSkfZr",
"api": "openai-completions",
"request": {
"allowPrivateNetwork": true
},
"models": [
{
"id": "qwen3.7-max",
"name": "Qwen 3.7 Max",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768,
"api": "openai-completions"
},
{
"id": "deepseek-v4-pro",
"name": "DeepSeek V4 Pro",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768,
"api": "openai-completions"
},
{
"id": "deepseek-v4-flash",
"name": "DeepSeek V4 Flash",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 8192,
"api": "openai-completions"
},
{
"id": "glm-5.1",
"name": "GLM 5.1",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768,
"api": "openai-completions"
},
{
"id": "kim-k2.6",
"name": "Kimi K2.6",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768,
"api": "openai-completions"
},
{
"id": "qwen3.5-plus",
"name": "Qwen 3.5 Plus",
"reasoning": false,
"input": [
"text",
"image"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 32768,
"api": "openai-completions"
}
]
},
"openai": {
"baseUrl": "http://192.168.2.74:3000/v1",
"apiKey": "sk-vaYyq9RwzyLlvAvHHUXzOTWkbioP76YW58vKuplq2npSkfZr",
"api": "openai-completions",
"models": []
},
"newapi": {
"baseUrl": "http://100.115.195.188:3000/v1",
"apiKey": "NEW_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5-plus",
"name": "Qwen 3.5 Plus",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 131072,
"maxTokens": 8192,
"api": "openai-completions"
},
{
"id": "deepseek-v4-flash",
"name": "DeepSeek V4 Flash",
"reasoning": false,
"compat": {
"supportsTools": false
},
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 1000000,
"maxTokens": 384000
},
{
"id": "qwen3.7-plus",
"name": "Qwen 3.7 Plus",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 1,
"output": 2,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 1000000,
"maxTokens": 384000
}
]
}
}
}