pi-free 2.1.0 → 2.2.0
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.
- package/CHANGELOG.md +48 -3
- package/README.md +32 -4
- package/banner.svg +1 -1
- package/config.ts +644 -629
- package/constants.ts +4 -0
- package/index.ts +380 -378
- package/lib/built-in-toggle.ts +0 -40
- package/lib/probe-cache.ts +8 -0
- package/lib/provider-probe.ts +15 -0
- package/package.json +5 -5
- package/provider-helper.ts +1 -25
- package/providers/bai/bai.ts +232 -0
- package/providers/cline/cline-xml-bridge.ts +631 -105
- package/providers/cline/cline.ts +0 -23
- package/providers/codestral/codestral.ts +0 -11
- package/providers/dynamic-built-in/index.ts +12 -20
- package/providers/kilo/kilo.ts +2 -19
- package/providers/ollama/ollama.ts +12 -12
- package/providers/routeway/routeway.ts +10 -0
- package/providers/tokenrouter/tokenrouter.ts +634 -378
package/constants.ts
CHANGED
|
@@ -24,6 +24,7 @@ export const PROVIDER_TOGETHER = "together";
|
|
|
24
24
|
export const PROVIDER_NOVITA = "novita";
|
|
25
25
|
export const PROVIDER_ROUTEWAY = "routeway";
|
|
26
26
|
export const PROVIDER_TOKENROUTER = "tokenrouter";
|
|
27
|
+
export const PROVIDER_BAI = "bai";
|
|
27
28
|
|
|
28
29
|
export const ALL_UNIQUE_PROVIDERS = [
|
|
29
30
|
PROVIDER_KILO,
|
|
@@ -42,6 +43,7 @@ export const ALL_UNIQUE_PROVIDERS = [
|
|
|
42
43
|
PROVIDER_NOVITA,
|
|
43
44
|
PROVIDER_ROUTEWAY,
|
|
44
45
|
PROVIDER_TOKENROUTER,
|
|
46
|
+
PROVIDER_BAI,
|
|
45
47
|
] as const;
|
|
46
48
|
|
|
47
49
|
// =============================================================================
|
|
@@ -65,6 +67,8 @@ export const BASE_URL_TOGETHER = "https://api.together.xyz/v1";
|
|
|
65
67
|
export const BASE_URL_NOVITA = "https://api.novita.ai/openai/v1";
|
|
66
68
|
export const BASE_URL_ROUTEWAY = "https://api.routeway.ai/v1";
|
|
67
69
|
export const BASE_URL_TOKENROUTER = "https://api.tokenrouter.com/v1";
|
|
70
|
+
export const BASE_URL_BAI = "https://api.b.ai/v1";
|
|
71
|
+
|
|
68
72
|
|
|
69
73
|
/** Cline fetches free models from OpenRouter */
|
|
70
74
|
export const BASE_URL_OPENROUTER = "https://openrouter.ai/api/v1";
|