@oh-my-pi/pi-ai 15.10.5 → 15.10.6
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 +6 -0
- package/dist/types/provider-models/openai-compat.d.ts +6 -0
- package/dist/types/registry/aimlapi.d.ts +13 -0
- package/dist/types/registry/registry.d.ts +11 -0
- package/package.json +2 -2
- package/src/models.json +8385 -11
- package/src/provider-models/openai-compat.ts +49 -0
- package/src/providers/pi-native-client.ts +1 -1
- package/src/registry/aimlapi.ts +12 -0
- package/src/registry/registry.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [15.10.6] - 2026-06-08
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added AIML API as an OpenAI-compatible provider preset with `AIMLAPI_API_KEY` discovery ([#2105](https://github.com/can1357/oh-my-pi/issues/2105)).
|
|
10
|
+
|
|
5
11
|
## [15.10.5] - 2026-06-08
|
|
6
12
|
|
|
7
13
|
### Breaking Changes
|
|
@@ -106,6 +106,12 @@ export declare const XAI_OAUTH_CURATED_MODELS: readonly XAICuratedModel[];
|
|
|
106
106
|
*/
|
|
107
107
|
export declare function buildXaiOAuthStaticSeed(baseUrl?: string): Model<"openai-responses">[];
|
|
108
108
|
export declare function xaiOAuthModelManagerOptions(config?: XaiOAuthModelManagerConfig): ModelManagerOptions<"openai-responses">;
|
|
109
|
+
export declare function isLikelyAimlApiChatModelId(id: string): boolean;
|
|
110
|
+
export interface AimlApiModelManagerConfig {
|
|
111
|
+
apiKey?: string;
|
|
112
|
+
baseUrl?: string;
|
|
113
|
+
}
|
|
114
|
+
export declare function aimlApiModelManagerOptions(config?: AimlApiModelManagerConfig): ModelManagerOptions<"openai-completions">;
|
|
109
115
|
export interface DeepSeekModelManagerConfig {
|
|
110
116
|
apiKey?: string;
|
|
111
117
|
baseUrl?: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ModelManagerConfig } from "./types";
|
|
2
|
+
export declare const aimlApiProvider: {
|
|
3
|
+
readonly id: "aimlapi";
|
|
4
|
+
readonly name: "AIML API";
|
|
5
|
+
readonly defaultModel: "gpt-4o";
|
|
6
|
+
readonly createModelManagerOptions: (config: ModelManagerConfig) => import("..").ModelManagerOptions<"openai-completions", unknown>;
|
|
7
|
+
readonly dynamicModelsAuthoritative: true;
|
|
8
|
+
readonly catalogDiscovery: {
|
|
9
|
+
readonly label: "AIML API";
|
|
10
|
+
readonly envVars: readonly ["AIMLAPI_API_KEY"];
|
|
11
|
+
};
|
|
12
|
+
readonly envKeys: "AIMLAPI_API_KEY";
|
|
13
|
+
};
|
|
@@ -7,6 +7,17 @@ import type { ProviderDefinition } from "./types";
|
|
|
7
7
|
* list for the loginable providers; non-login model providers are appended.
|
|
8
8
|
*/
|
|
9
9
|
declare const ALL: ({
|
|
10
|
+
readonly id: "aimlapi";
|
|
11
|
+
readonly name: "AIML API";
|
|
12
|
+
readonly defaultModel: "gpt-4o";
|
|
13
|
+
readonly createModelManagerOptions: (config: import("./types").ModelManagerConfig) => import("..").ModelManagerOptions<"openai-completions", unknown>;
|
|
14
|
+
readonly dynamicModelsAuthoritative: true;
|
|
15
|
+
readonly catalogDiscovery: {
|
|
16
|
+
readonly label: "AIML API";
|
|
17
|
+
readonly envVars: readonly ["AIMLAPI_API_KEY"];
|
|
18
|
+
};
|
|
19
|
+
readonly envKeys: "AIMLAPI_API_KEY";
|
|
20
|
+
} | {
|
|
10
21
|
readonly id: "alibaba-coding-plan";
|
|
11
22
|
readonly name: "Alibaba Coding Plan";
|
|
12
23
|
readonly defaultModel: "qwen3.5-plus";
|
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.10.
|
|
4
|
+
"version": "15.10.6",
|
|
5
5
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@bufbuild/protobuf": "^2.12.0",
|
|
42
|
-
"@oh-my-pi/pi-utils": "15.10.
|
|
42
|
+
"@oh-my-pi/pi-utils": "15.10.6",
|
|
43
43
|
"openai": "^6.39.0",
|
|
44
44
|
"partial-json": "^0.1.7",
|
|
45
45
|
"zod": "4.4.3"
|