pi-openmodel-provider 0.2.10 → 0.2.11

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.
@@ -17,6 +17,21 @@ pi-openmodel-provider is a custom provider that connects pi to [OpenModel.ai](ht
17
17
  - **DeepSeek-V4-Flash** with 1M context window
18
18
  - **NOT** OpenRouter — this is a different service called OpenModel.ai
19
19
 
20
+ ## Model discovery
21
+
22
+ Models are fetched live from OpenModel's API at startup:
23
+
24
+ - **Pricing & capabilities:** `https://api.openmodel.ai/web/v1/models` (public, no auth needed)
25
+ - **Protocol info:** `https://api.openmodel.ai/v1/models` (requires API key — if unavailable, protocols are inferred from provider)
26
+
27
+ If the API key is not configured yet, models still load — protocols are inferred automatically from the provider name.
28
+
29
+ ## Thinking levels
30
+
31
+ Reasoning models support thinking levels:
32
+ - **Messages protocol:** minimal → low, low → medium, medium → high
33
+ - **Responses protocol:** `reasoning_effort` levels (low, medium, high)
34
+
20
35
  ## Available commands
21
36
 
22
37
  - `/openmodel` — Show provider status
package/AGENTS.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  - This package is **pi-openmodel-provider** for OpenModel.ai, **NOT** OpenRouter.
4
4
  - OpenModel is a multi-model AI gateway, similar to OpenRouter but a different service.
5
+ - Models are fetched dynamically from OpenModel's API at startup — no hardcoded model list.
6
+ - If the `/v1/models` endpoint fails (no API key), protocols are inferred from the provider.
5
7
  - See `.agents/skills/pi-openmodel-info/SKILL.md` for full documentation.
6
8
  - Follow [CONTRIBUTING.md](CONTRIBUTING.md) before changing code.
7
9
  - Use [RELEASE.md](RELEASE.md) for release process.
package/CHANGELOG.md CHANGED
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.2.10] - 2026-06-20
8
+ ## [0.2.10] - 2026-06-22
9
9
 
10
10
  ### Fixed
11
11
  - Legacy `/v1/models` endpoint failing without API key (models now load without auth)
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A [pi](https://github.com/earendil-works/pi-mono) custom provider that connects pi to [OpenModel.ai](https://www.openmodel.ai) — a unified AI API gateway.
4
4
 
5
- [![npm version](https://badge.fury.io/js/pi-openmodel-provider.svg)](https://www.npmjs.com/package/pi-openmodel-provider)
5
+ [![npm version](https://img.shields.io/npm/v/pi-openmodel-provider)](https://www.npmjs.com/package/pi-openmodel-provider)
6
6
 
7
7
  > **Disclaimer:** This is an unofficial, community-maintained package. I am not affiliated with, endorsed by, or connected to OpenModel in any way. This provider simply forwards requests to the public OpenModel API using your own API key.
8
8
 
@@ -57,10 +57,10 @@ Models are fetched live from OpenModel's API at startup, so new models show up w
57
57
 
58
58
  ## Model discovery
59
59
 
60
- On startup, the provider fetches models from two public endpoints (no authentication required):
60
+ On startup, the provider fetches models from two endpoints:
61
61
 
62
- - **Model list & protocols:** `https://api.openmodel.ai/v1/models`
63
- - **Pricing & capabilities:** `https://api.openmodel.ai/web/v1/models`
62
+ - **Pricing & capabilities:** `https://api.openmodel.ai/web/v1/models` (public, no auth needed)
63
+ - **Protocol info:** `https://api.openmodel.ai/v1/models` (requires API key — if unavailable, protocols are inferred from the provider)
64
64
 
65
65
  Pricing, context window, reasoning support, and vision capabilities are all provided by the API — no hardcoded data.
66
66
 
@@ -148,6 +148,7 @@ npm run test:models
148
148
  npm run test:auth
149
149
  npm run test:pricing
150
150
  npm run test:stability
151
+ npm run test:edge
151
152
  ```
152
153
 
153
154
  ## Contributing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-openmodel-provider",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "pi custom provider for OpenModel.ai - Multi-model AI gateway",
5
5
  "type": "module",
6
6
  "keywords": [