@pydantic/genai-prices 0.0.36 → 0.0.38
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/dist/cli.js +629 -227
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +454 -52
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -65,6 +65,8 @@ export declare interface ModelPriceCalculationResult {
|
|
|
65
65
|
total_price: number;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
declare type OptionalProviders = null | Provider[];
|
|
69
|
+
|
|
68
70
|
export declare interface PriceCalculation {
|
|
69
71
|
auto_update_timestamp?: string;
|
|
70
72
|
input_price: number;
|
|
@@ -103,6 +105,8 @@ export declare interface Provider {
|
|
|
103
105
|
provider_match?: MatchLogic;
|
|
104
106
|
}
|
|
105
107
|
|
|
108
|
+
export declare type ProviderDataPayload = OptionalProviders | Promise<OptionalProviders>;
|
|
109
|
+
|
|
106
110
|
export declare interface ProviderFindOptions {
|
|
107
111
|
modelId?: string;
|
|
108
112
|
providerApiUrl?: string;
|
|
@@ -119,7 +123,7 @@ export declare interface StartDateConstraint {
|
|
|
119
123
|
export declare interface StorageFactoryParams {
|
|
120
124
|
onCalc: (cb: () => void) => void;
|
|
121
125
|
remoteDataUrl: string;
|
|
122
|
-
setProviderData: (data:
|
|
126
|
+
setProviderData: (data: ProviderDataPayload) => void;
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
export declare interface Tier {
|
|
@@ -163,6 +167,6 @@ export declare interface UsageExtractorMapping {
|
|
|
163
167
|
required: boolean;
|
|
164
168
|
}
|
|
165
169
|
|
|
166
|
-
export declare function waitForUpdate(): Promise<Provider[]>;
|
|
170
|
+
export declare function waitForUpdate(): Promise<Provider[] | null>;
|
|
167
171
|
|
|
168
172
|
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ export declare interface ModelPriceCalculationResult {
|
|
|
65
65
|
total_price: number;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
declare type OptionalProviders = null | Provider[];
|
|
69
|
+
|
|
68
70
|
export declare interface PriceCalculation {
|
|
69
71
|
auto_update_timestamp?: string;
|
|
70
72
|
input_price: number;
|
|
@@ -103,6 +105,8 @@ export declare interface Provider {
|
|
|
103
105
|
provider_match?: MatchLogic;
|
|
104
106
|
}
|
|
105
107
|
|
|
108
|
+
export declare type ProviderDataPayload = OptionalProviders | Promise<OptionalProviders>;
|
|
109
|
+
|
|
106
110
|
export declare interface ProviderFindOptions {
|
|
107
111
|
modelId?: string;
|
|
108
112
|
providerApiUrl?: string;
|
|
@@ -119,7 +123,7 @@ export declare interface StartDateConstraint {
|
|
|
119
123
|
export declare interface StorageFactoryParams {
|
|
120
124
|
onCalc: (cb: () => void) => void;
|
|
121
125
|
remoteDataUrl: string;
|
|
122
|
-
setProviderData: (data:
|
|
126
|
+
setProviderData: (data: ProviderDataPayload) => void;
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
export declare interface Tier {
|
|
@@ -163,6 +167,6 @@ export declare interface UsageExtractorMapping {
|
|
|
163
167
|
required: boolean;
|
|
164
168
|
}
|
|
165
169
|
|
|
166
|
-
export declare function waitForUpdate(): Promise<Provider[]>;
|
|
170
|
+
export declare function waitForUpdate(): Promise<Provider[] | null>;
|
|
167
171
|
|
|
168
172
|
export { }
|