@codeworksh/aikit 0.4.1-dev.20260530165410 → 0.4.1-dev.20260530172609
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/index.d.mts +12 -12
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -5424,11 +5424,10 @@ declare namespace Model {
|
|
|
5424
5424
|
function getBuiltInModels(): Promise<BuiltInModels>;
|
|
5425
5425
|
const registry: {
|
|
5426
5426
|
(): Promise<Map<string, Map<string, {
|
|
5427
|
-
headers?: Record<string, string> | undefined;
|
|
5428
5427
|
api?: {
|
|
5429
5428
|
id?: string | undefined;
|
|
5430
5429
|
url?: string | undefined;
|
|
5431
|
-
method?: "
|
|
5430
|
+
method?: "messages" | "languageModel" | "chat" | "completion" | "completionModel" | "responses" | undefined;
|
|
5432
5431
|
} | undefined;
|
|
5433
5432
|
options?: Record<string, unknown> | undefined;
|
|
5434
5433
|
thinkingLevelMap?: {
|
|
@@ -5439,6 +5438,7 @@ declare namespace Model {
|
|
|
5439
5438
|
high?: string | null | undefined;
|
|
5440
5439
|
xhigh?: string | null | undefined;
|
|
5441
5440
|
} | undefined;
|
|
5441
|
+
headers?: Record<string, string> | undefined;
|
|
5442
5442
|
npm?: string | undefined;
|
|
5443
5443
|
providerOptionsKey?: string | undefined;
|
|
5444
5444
|
providerOptions?: Record<string, unknown> | undefined;
|
|
@@ -5452,7 +5452,7 @@ declare namespace Model {
|
|
|
5452
5452
|
googleVertexAnthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5453
5453
|
openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5454
5454
|
} | undefined;
|
|
5455
|
-
|
|
5455
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
5456
5456
|
id: string;
|
|
5457
5457
|
name: string;
|
|
5458
5458
|
provider: {
|
|
@@ -5463,8 +5463,6 @@ declare namespace Model {
|
|
|
5463
5463
|
source: "env" | "config" | "custom" | "api" | "unknown";
|
|
5464
5464
|
env: string[];
|
|
5465
5465
|
};
|
|
5466
|
-
baseUrl: string;
|
|
5467
|
-
reasoning: boolean;
|
|
5468
5466
|
input: ("text" | "image")[];
|
|
5469
5467
|
cost: {
|
|
5470
5468
|
input: number;
|
|
@@ -5472,18 +5470,19 @@ declare namespace Model {
|
|
|
5472
5470
|
cacheRead: number;
|
|
5473
5471
|
cacheWrite: number;
|
|
5474
5472
|
};
|
|
5473
|
+
baseUrl: string;
|
|
5474
|
+
reasoning: boolean;
|
|
5475
5475
|
contextWindow: number;
|
|
5476
|
-
|
|
5476
|
+
maxTokens: number;
|
|
5477
5477
|
}>>>;
|
|
5478
5478
|
reset(): void;
|
|
5479
5479
|
};
|
|
5480
5480
|
function supportsProtocol(model: Info, protocol: KnownProviderEnum): boolean;
|
|
5481
5481
|
function getModel<TProvider extends string, TModel extends Info["id"]>(provider: TProvider, model: TModel, overrides?: Partial<Info>): Promise<{
|
|
5482
|
-
headers?: Record<string, string> | undefined;
|
|
5483
5482
|
api?: {
|
|
5484
5483
|
id?: string | undefined;
|
|
5485
5484
|
url?: string | undefined;
|
|
5486
|
-
method?: "
|
|
5485
|
+
method?: "messages" | "languageModel" | "chat" | "completion" | "completionModel" | "responses" | undefined;
|
|
5487
5486
|
} | undefined;
|
|
5488
5487
|
options?: Record<string, unknown> | undefined;
|
|
5489
5488
|
thinkingLevelMap?: {
|
|
@@ -5494,6 +5493,7 @@ declare namespace Model {
|
|
|
5494
5493
|
high?: string | null | undefined;
|
|
5495
5494
|
xhigh?: string | null | undefined;
|
|
5496
5495
|
} | undefined;
|
|
5496
|
+
headers?: Record<string, string> | undefined;
|
|
5497
5497
|
npm?: string | undefined;
|
|
5498
5498
|
providerOptionsKey?: string | undefined;
|
|
5499
5499
|
providerOptions?: Record<string, unknown> | undefined;
|
|
@@ -5507,7 +5507,7 @@ declare namespace Model {
|
|
|
5507
5507
|
googleVertexAnthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5508
5508
|
openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5509
5509
|
} | undefined;
|
|
5510
|
-
|
|
5510
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
5511
5511
|
id: string;
|
|
5512
5512
|
name: string;
|
|
5513
5513
|
provider: {
|
|
@@ -5518,8 +5518,6 @@ declare namespace Model {
|
|
|
5518
5518
|
source: "env" | "config" | "custom" | "api" | "unknown";
|
|
5519
5519
|
env: string[];
|
|
5520
5520
|
};
|
|
5521
|
-
baseUrl: string;
|
|
5522
|
-
reasoning: boolean;
|
|
5523
5521
|
input: ("text" | "image")[];
|
|
5524
5522
|
cost: {
|
|
5525
5523
|
input: number;
|
|
@@ -5527,8 +5525,10 @@ declare namespace Model {
|
|
|
5527
5525
|
cacheRead: number;
|
|
5528
5526
|
cacheWrite: number;
|
|
5529
5527
|
};
|
|
5528
|
+
baseUrl: string;
|
|
5529
|
+
reasoning: boolean;
|
|
5530
5530
|
contextWindow: number;
|
|
5531
|
-
|
|
5531
|
+
maxTokens: number;
|
|
5532
5532
|
} | undefined>;
|
|
5533
5533
|
function getProviders(): Promise<string[]>;
|
|
5534
5534
|
function getModels<TProvider extends string>(provider: TProvider): Promise<Info[]>;
|