pi-baseten-provider 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/index.ts +2 -3
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -25,12 +25,11 @@
25
25
  * Then use /model to select from available models
26
26
  */
27
27
 
28
- import type { ExtensionAPI, ModelRegistry } from "@earendil-works/pi-coding-agent";
28
+ import { getAgentDir, type ExtensionAPI, type ModelRegistry } from "@earendil-works/pi-coding-agent";
29
29
  import modelsData from "./models.json" with { type: "json" };
30
30
  import customModelsData from "./custom-models.json" with { type: "json" };
31
31
  import patchData from "./patch.json" with { type: "json" };
32
32
  import fs from "fs";
33
- import os from "os";
34
33
  import path from "path";
35
34
 
36
35
  // ─── Types ────────────────────────────────────────────────────────────────────
@@ -156,7 +155,7 @@ function buildModels(base: JsonModel[], custom: JsonModel[], patch: PatchData):
156
155
  const PROVIDER_ID = "baseten";
157
156
  const BASE_URL = "https://inference.baseten.co/v1";
158
157
  const MODELS_URL = `${BASE_URL}/models`;
159
- const CACHE_DIR = path.join(os.homedir(), ".pi", "agent", "cache");
158
+ const CACHE_DIR = path.join(getAgentDir(), "cache");
160
159
  const CACHE_PATH = path.join(CACHE_DIR, `${PROVIDER_ID}-models.json`);
161
160
  const LIVE_FETCH_TIMEOUT_MS = 8000;
162
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-baseten-provider",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Baseten provider extension for pi - Access DeepSeek, Kimi, GLM, MiniMax, Nemotron, and GPT-OSS models through the Baseten Model API",
5
5
  "author": "monotykamary",
6
6
  "homepage": "https://github.com/monotykamary/pi-baseten-provider#readme",