@agnishc/edb-custom-provider 0.14.4 → 0.14.5
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 +21 -0
- package/README.md +49 -0
- package/package.json +1 -1
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)
|