@oh-my-pi/pi-ai 15.4.2 → 15.4.3

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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [15.4.3] - 2026-05-26
6
+
7
+ ### Fixed
8
+
9
+ - Fixed Google Vertex model discovery to use the project-scoped OpenAI-compatible model list so Vertex Model Garden models such as GLM and Claude are available through ADC auth ([#1412](https://github.com/can1357/oh-my-pi/issues/1412)).
10
+
5
11
  ## [15.4.2] - 2026-05-26
6
12
 
7
13
  ### Fixed
@@ -1,9 +1,14 @@
1
1
  import type { ModelManagerOptions } from "../model-manager";
2
+ import type { FetchImpl } from "../types";
2
3
  export interface GoogleModelManagerConfig {
3
4
  apiKey?: string;
4
5
  }
5
6
  export interface GoogleVertexModelManagerConfig {
6
7
  apiKey?: string;
8
+ project?: string;
9
+ location?: string;
10
+ signal?: AbortSignal;
11
+ fetch?: FetchImpl;
7
12
  }
8
13
  export interface GoogleAntigravityModelManagerConfig {
9
14
  oauthToken?: string;
@@ -14,6 +19,6 @@ export interface GoogleGeminiCliModelManagerConfig {
14
19
  endpoint?: string;
15
20
  }
16
21
  export declare function googleModelManagerOptions(config?: GoogleModelManagerConfig): ModelManagerOptions<"google-generative-ai">;
17
- export declare function googleVertexModelManagerOptions(_config?: GoogleVertexModelManagerConfig): ModelManagerOptions<"google-vertex">;
22
+ export declare function googleVertexModelManagerOptions(config?: GoogleVertexModelManagerConfig): ModelManagerOptions;
18
23
  export declare function googleAntigravityModelManagerOptions(config?: GoogleAntigravityModelManagerConfig): ModelManagerOptions<"google-gemini-cli">;
19
24
  export declare function googleGeminiCliModelManagerOptions(config?: GoogleGeminiCliModelManagerConfig): ModelManagerOptions<"google-gemini-cli">;
@@ -2,3 +2,4 @@ export * from "./antigravity";
2
2
  export * from "./codex";
3
3
  export * from "./gemini";
4
4
  export * from "./openai-compatible";
5
+ export * from "./vertex";
@@ -0,0 +1,25 @@
1
+ import type { FetchImpl, Model } from "../../types";
2
+ /** Configuration for Vertex AI OpenAI-compatible model discovery. */
3
+ export interface VertexDiscoveryOptions {
4
+ /** Google Cloud project ID hosting the Vertex AI endpoint. */
5
+ project: string;
6
+ /** Vertex AI location, for example `global` or `us-central1`. */
7
+ location: string;
8
+ /** Optional requested page size for model listing. */
9
+ pageSize?: number;
10
+ /** Maximum number of pages to request before stopping pagination. */
11
+ maxPages?: number;
12
+ /** Optional abort signal for HTTP requests. */
13
+ signal?: AbortSignal;
14
+ /** Optional fetch implementation override for tests. */
15
+ fetch?: FetchImpl;
16
+ }
17
+ /**
18
+ * Fetches models exposed by Vertex AI's OpenAI-compatible endpoint.
19
+ *
20
+ * Returns `null` on auth, transport, or protocol failures so callers can fall
21
+ * back to cache/static models without surfacing discovery noise at startup.
22
+ */
23
+ export declare function fetchVertexOpenAIModels(options: VertexDiscoveryOptions): Promise<Model<"openai-completions">[] | null>;
24
+ /** Returns the stable Vertex AI OpenAI-compatible endpoint base URL. */
25
+ export declare function buildVertexOpenAIBaseUrl(project: string, location: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-ai",
4
- "version": "15.4.2",
4
+ "version": "15.4.3",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@anthropic-ai/sdk": "^0.94.0",
45
45
  "@bufbuild/protobuf": "^2.12.0",
46
- "@oh-my-pi/pi-utils": "15.4.2",
46
+ "@oh-my-pi/pi-utils": "15.4.3",
47
47
  "openai": "^6.36.0",
48
48
  "partial-json": "^0.1.7",
49
49
  "zod": "4.4.3"