Skip to content

Commit 22ce02d

Browse files
committed
feat: 补充大模型平台识别规则
扩展 AI 页面规则,新增 20 个大模型 API、推理平台和模型服务商的资源 URL 匹配。 覆盖 OpenAI、Anthropic、Gemini、Perplexity、Hugging Face、Replicate、Cohere、Mistral、Together AI、Groq、DeepSeek、Moonshot、MiniMax、SiliconFlow、OpenRouter、DashScope、火山方舟、百度千帆、智谱 GLM 和讯飞星火,并补充对应技术链接。 将版本升至 1.1.59。 验证:npx prettier --write .;npx prettier --check .;pnpm run typecheck;pnpm run lint;JSON/正则全量校验;pnpm run build;版本一致性检查;git diff --check。
1 parent 5e6c24b commit 22ce02d

3 files changed

Lines changed: 115 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.1.58",
4+
"version": "1.1.59",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

public/rules/page/ai-platforms-assets.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,100 @@
102102
}
103103
]
104104
},
105+
{
106+
"defaults": {
107+
"kind": "大模型 API / 推理平台",
108+
"matchIn": ["resources"]
109+
},
110+
"rules": [
111+
{
112+
"name": "OpenAI API",
113+
"patterns": ["api\\.openai\\.com|chatgpt\\.com/(?:backend-api|share)|openai\\.com/[^\\s\"'<>]*(?:v1|api|models)"]
114+
},
115+
{
116+
"name": "Anthropic API",
117+
"patterns": ["api\\.anthropic\\.com|claude\\.ai/api|anthropic\\.com/[^\\s\"'<>]*(?:api|sdk|messages)"]
118+
},
119+
{
120+
"name": "Google Gemini API",
121+
"patterns": [
122+
"generativelanguage\\.googleapis\\.com|aiplatform\\.googleapis\\.com|ai\\.google\\.dev/[^\\s\"'<>]*(?:gemini|api)"
123+
]
124+
},
125+
{
126+
"name": "Perplexity API",
127+
"patterns": ["api\\.perplexity\\.ai|perplexity\\.ai/[^\\s\"'<>]*(?:api|search|chat)"]
128+
},
129+
{
130+
"name": "Hugging Face Inference API",
131+
"patterns": ["api-inference\\.huggingface\\.co|huggingface\\.co/[^\\s\"'<>]*(?:api|spaces|models)|hf\\.space"]
132+
},
133+
{
134+
"name": "Replicate API",
135+
"patterns": ["api\\.replicate\\.com|replicate\\.delivery|replicate\\.com/[^\\s\"'<>]*(?:api|predictions|models)"]
136+
},
137+
{
138+
"name": "Cohere API",
139+
"patterns": ["api\\.cohere\\.ai|cohere\\.com/[^\\s\"'<>]*(?:api|embed|generate|rerank)"]
140+
},
141+
{
142+
"name": "Mistral AI API",
143+
"patterns": ["api\\.mistral\\.ai|mistral\\.ai/[^\\s\"'<>]*(?:api|models|chat)"]
144+
},
145+
{
146+
"name": "Together AI",
147+
"patterns": ["api\\.together\\.xyz|together\\.ai/[^\\s\"'<>]*(?:api|inference|models)"]
148+
},
149+
{
150+
"name": "Groq API",
151+
"patterns": ["api\\.groq\\.com|groq\\.com/[^\\s\"'<>]*(?:api|openai|chat|models)"]
152+
},
153+
{
154+
"name": "DeepSeek API",
155+
"patterns": ["api\\.deepseek\\.com|deepseek\\.com/[^\\s\"'<>]*(?:api|chat|models)"]
156+
},
157+
{
158+
"name": "Moonshot AI / Kimi",
159+
"patterns": ["api\\.moonshot\\.cn|kimi\\.moonshot\\.cn|moonshot\\.cn/[^\\s\"'<>]*(?:api|kimi|chat)"]
160+
},
161+
{
162+
"name": "MiniMax API",
163+
"patterns": ["api\\.minimax\\.chat|minimax\\.chat/[^\\s\"'<>]*(?:api|chatcompletion|text|image)|abab\\.chat"]
164+
},
165+
{
166+
"name": "SiliconFlow",
167+
"patterns": ["api\\.siliconflow\\.cn|siliconflow\\.cn/[^\\s\"'<>]*(?:api|models|inference)"]
168+
},
169+
{
170+
"name": "OpenRouter",
171+
"patterns": ["openrouter\\.ai/api|openrouter\\.ai/[^\\s\"'<>]*(?:models|chat|completions)"]
172+
},
173+
{
174+
"name": "Alibaba DashScope / 通义千问",
175+
"patterns": [
176+
"dashscope\\.aliyuncs\\.com|dashscope\\.aliyun\\.com|aliyuncs\\.com/[^\\s\"'<>]*(?:dashscope|qwen)|qwen\\.aliyun\\.com"
177+
]
178+
},
179+
{
180+
"name": "Volcengine Ark / 火山方舟",
181+
"patterns": ["ark\\.cn-beijing\\.volces\\.com|ark\\.volces\\.com|volcengine\\.com/[^\\s\"'<>]*(?:ark|doubao|maas)"]
182+
},
183+
{
184+
"name": "Baidu Qianfan / 文心千帆",
185+
"patterns": [
186+
"qianfan\\.baidu\\.com|aip\\.baidubce\\.com/rpc/2\\.0/ai_custom|wenxin\\.baidu\\.com|baidubce\\.com/[^\\s\"'<>]*(?:qianfan|ernie)"
187+
]
188+
},
189+
{
190+
"name": "Zhipu AI / 智谱 GLM",
191+
"patterns": ["open\\.bigmodel\\.cn|bigmodel\\.cn/[^\\s\"'<>]*(?:api|glm|chat)"]
192+
},
193+
{
194+
"name": "iFlytek Spark / 讯飞星火",
195+
"patterns": ["spark-api\\.xf-yun\\.com|spark\\.xf-yun\\.com|xfyun\\.cn/[^\\s\"'<>]*(?:spark|xinghuo|api)"]
196+
}
197+
]
198+
},
105199
{
106200
"defaults": {
107201
"kind": "AI Demo / 数据科学应用"

public/tech-links.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,26 @@
400400
"SwarmUI": "https://github.com/mcmonkeyprojects/SwarmUI",
401401
"Text Generation WebUI": "https://github.com/oobabooga/text-generation-webui",
402402
"Kohya SS GUI": "https://github.com/bmaltais/kohya_ss",
403+
"OpenAI API": "https://platform.openai.com",
404+
"Anthropic API": "https://docs.anthropic.com",
405+
"Google Gemini API": "https://ai.google.dev",
406+
"Perplexity API": "https://docs.perplexity.ai",
407+
"Hugging Face Inference API": "https://huggingface.co/docs/api-inference",
408+
"Replicate API": "https://replicate.com/docs",
409+
"Cohere API": "https://cohere.com",
410+
"Mistral AI API": "https://docs.mistral.ai",
411+
"Together AI": "https://www.together.ai",
412+
"Groq API": "https://groq.com",
413+
"DeepSeek API": "https://platform.deepseek.com",
414+
"Moonshot AI / Kimi": "https://platform.moonshot.cn",
415+
"MiniMax API": "https://www.minimaxi.com",
416+
"SiliconFlow": "https://siliconflow.cn",
417+
"OpenRouter": "https://openrouter.ai",
418+
"Alibaba DashScope / 通义千问": "https://dashscope.aliyun.com",
419+
"Volcengine Ark / 火山方舟": "https://www.volcengine.com/product/ark",
420+
"Baidu Qianfan / 文心千帆": "https://cloud.baidu.com/product/wenxinworkshop",
421+
"Zhipu AI / 智谱 GLM": "https://open.bigmodel.cn",
422+
"iFlytek Spark / 讯飞星火": "https://xinghuo.xfyun.cn",
403423
"Jupyter Notebook": "https://jupyter.org",
404424
"JupyterLab": "https://jupyterlab.readthedocs.io",
405425
"Ruby on Rails Active Storage": "https://guides.rubyonrails.org/active_storage_overview.html",

0 commit comments

Comments
 (0)