@kenkaiiii/error-mom 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/shared.ts
|
|
2
2
|
var SDK_NAME = "@kenkaiiii/error-mom";
|
|
3
|
-
var SDK_VERSION = "0.2.
|
|
3
|
+
var SDK_VERSION = "0.2.2";
|
|
4
4
|
var MAX_BREADCRUMBS = 50;
|
|
5
5
|
var SECRET_KEY = /authorization|cookie|password|passwd|secret|token|api[-_]?key|session/i;
|
|
6
6
|
var URL_CREDENTIAL = /([?&](?:token|key|secret|password|code)=)[^&\s]*/gi;
|
|
@@ -92,7 +92,36 @@ var AI_PROVIDERS = [
|
|
|
92
92
|
[/(^|\.)api\.perplexity\.ai$/, "perplexity"],
|
|
93
93
|
[/(^|\.)api\.replicate\.com$/, "replicate"],
|
|
94
94
|
[/(^|\.)api-inference\.huggingface\.co$/, "huggingface"],
|
|
95
|
-
[/(^|\.)
|
|
95
|
+
[/(^|\.)router\.huggingface\.co$/, "huggingface"],
|
|
96
|
+
[/(^|\.)api\.elevenlabs\.io$/, "elevenlabs"],
|
|
97
|
+
[/(^|\.)api\.moonshot\.(ai|cn)$/, "moonshot"],
|
|
98
|
+
[/(^|\.)api\.kimi\.com$/, "moonshot"],
|
|
99
|
+
[/(^|\.)api\.z\.ai$/, "zai"],
|
|
100
|
+
[/(^|\.)open\.bigmodel\.cn$/, "zai"],
|
|
101
|
+
[/(^|\.)dashscope(-intl)?\.aliyuncs\.com$/, "qwen"],
|
|
102
|
+
[/(^|\.)api\.minimax(i)?\.(chat|com|io)$/, "minimax"],
|
|
103
|
+
[/(^|\.)api\.lingyiwanwu\.com$/, "yi"],
|
|
104
|
+
[/(^|\.)api\.stepfun\.com$/, "stepfun"],
|
|
105
|
+
[/(^|\.)api\.baichuan-ai\.com$/, "baichuan"],
|
|
106
|
+
[/(^|\.)api\.siliconflow\.(cn|com)$/, "siliconflow"],
|
|
107
|
+
[/(^|\.)api\.cerebras\.ai$/, "cerebras"],
|
|
108
|
+
[/(^|\.)api\.sambanova\.ai$/, "sambanova"],
|
|
109
|
+
[/(^|\.)api\.deepinfra\.com$/, "deepinfra"],
|
|
110
|
+
[/(^|\.)api\.novita\.ai$/, "novita"],
|
|
111
|
+
[/(^|\.)api\.hyperbolic\.xyz$/, "hyperbolic"],
|
|
112
|
+
[/(^|\.)api\.studio\.nebius\.(ai|com)$/, "nebius"],
|
|
113
|
+
[/(^|\.)models\.inference\.ai\.azure\.com$/, "github-models"],
|
|
114
|
+
[/(^|\.)models\.github\.ai$/, "github-models"],
|
|
115
|
+
[/(^|\.)ai-gateway\.vercel\.sh$/, "vercel-ai-gateway"],
|
|
116
|
+
[/(^|\.)gateway\.ai\.cloudflare\.com$/, "cloudflare-ai-gateway"],
|
|
117
|
+
[/(^|\.)api\.voyageai\.com$/, "voyage"],
|
|
118
|
+
[/(^|\.)api\.jina\.ai$/, "jina"],
|
|
119
|
+
[/(^|\.)api\.stability\.ai$/, "stability"],
|
|
120
|
+
[/(^|\.)(queue\.)?fal\.run$/, "fal"],
|
|
121
|
+
[/(^|\.)api\.assemblyai\.com$/, "assemblyai"],
|
|
122
|
+
[/(^|\.)api\.deepgram\.com$/, "deepgram"],
|
|
123
|
+
[/(^|\.)api\.lumalabs\.ai$/, "luma"],
|
|
124
|
+
[/(^|\.)api\.dev\.runwayml\.com$/, "runway"]
|
|
96
125
|
];
|
|
97
126
|
function providerForUrl(url) {
|
|
98
127
|
try {
|
package/dist/index.js
CHANGED
package/dist/node.js
CHANGED