@agnishc/edb-custom-provider 0.14.4 → 0.15.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Agnish Chakraborty
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # edb-custom-provider
2
+
3
+ Custom model providers for pi.
4
+
5
+ ## CrofAi
6
+
7
+ Adds CrofAi as a model provider with 22 models:
8
+ - DeepSeek V4 Pro/Flash
9
+ - Kimi K2.5/K2.6
10
+ - GLM 4.7/5/5.1
11
+ - Qwen 3.5/3.6
12
+ - Gemma 4 31B
13
+ - MiMo V2.5
14
+ - MiniMax M2.5
15
+
16
+ ### Authentication
17
+
18
+ **Option 1:** Environment variable
19
+ ```bash
20
+ export CROFAI_API_KEY="your-api-key"
21
+ ```
22
+
23
+ **Option 2:** Auth file (`~/.pi/agent/auth.json`)
24
+ ```json
25
+ {
26
+ "crofai": { "access": "your-api-key" }
27
+ }
28
+ ```
29
+
30
+ **Option 3:** Interactive login
31
+ ```
32
+ /login crofai
33
+ ```
34
+
35
+ ### Usage
36
+
37
+ ```bash
38
+ # Select CrofAi model
39
+ /model crofai/deepseek-v4-pro
40
+
41
+ # View available models
42
+ /models | grep crofai
43
+ ```
44
+
45
+ ### Notes
46
+
47
+ - Uses OpenAI-compatible Chat Completions API
48
+ - Supports `reasoning_effort` for reasoning-enabled models
49
+ - Vision support for `kimi-k2.5` (pass images in requests)
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "name": "@agnishc/edb-custom-provider",
3
- "version": "0.14.4",
4
- "description": "Custom model providers for pi",
5
- "keywords": [
6
- "pi-package",
7
- "pi-extension",
8
- "edb"
9
- ],
10
- "type": "module",
11
- "license": "MIT",
12
- "author": "Agnish Chakraborty",
13
- "scripts": {
14
- "test": "vitest run"
15
- },
16
- "files": [
17
- "src",
18
- "README.md",
19
- "LICENSE"
20
- ],
21
- "pi": {
22
- "extensions": [
23
- "./src/index.ts"
24
- ]
25
- },
26
- "peerDependencies": {
27
- "@earendil-works/pi-coding-agent": "*",
28
- "@earendil-works/pi-ai": "*"
29
- }
2
+ "name": "@agnishc/edb-custom-provider",
3
+ "version": "0.15.1",
4
+ "description": "Custom model providers for pi",
5
+ "keywords": [
6
+ "pi-package",
7
+ "pi-extension",
8
+ "edb"
9
+ ],
10
+ "type": "module",
11
+ "license": "MIT",
12
+ "author": "Agnish Chakraborty",
13
+ "scripts": {
14
+ "test": "vitest run"
15
+ },
16
+ "files": [
17
+ "src",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "pi": {
22
+ "extensions": [
23
+ "./src/index.ts"
24
+ ]
25
+ },
26
+ "peerDependencies": {
27
+ "@earendil-works/pi-coding-agent": "*",
28
+ "@earendil-works/pi-ai": "*"
29
+ }
30
30
  }
@@ -238,7 +238,7 @@ export function registerCrofAiProvider(pi: ExtensionAPI): void {
238
238
  pi.registerProvider(PROVIDER, {
239
239
  name: "CrofAi",
240
240
  baseUrl: BASE_URL,
241
- apiKey: "CROFAI_API_KEY",
241
+ apiKey: "$CROFAI_API_KEY",
242
242
  api: "openai-completions",
243
243
  authHeader: true,
244
244
  models: MODELS,