chatifai 1.0.52 → 1.0.53
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/types.d.ts +12 -0
- package/package.json +1 -1
- package/types.ts +14 -2
package/dist/types.d.ts
CHANGED
|
@@ -983,3 +983,15 @@ export declare enum FileType {
|
|
|
983
983
|
export declare enum QueuesList {
|
|
984
984
|
CONTEXT_PROCESS = "context_process_queue"
|
|
985
985
|
}
|
|
986
|
+
export interface ModelInfo {
|
|
987
|
+
id: string;
|
|
988
|
+
name: string;
|
|
989
|
+
contextLength: number;
|
|
990
|
+
pricing: {
|
|
991
|
+
prompt: number;
|
|
992
|
+
completion: number;
|
|
993
|
+
web_search?: number;
|
|
994
|
+
cacheRead?: number;
|
|
995
|
+
cacheWrite?: number;
|
|
996
|
+
};
|
|
997
|
+
}
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -11,7 +11,6 @@ export const modelsList = [
|
|
|
11
11
|
'gpt-4.1-nano',
|
|
12
12
|
'claude-3.7-sonnet',
|
|
13
13
|
'gemini-3-flash-preview',
|
|
14
|
-
|
|
15
14
|
] as const;
|
|
16
15
|
|
|
17
16
|
export const userRoles = ['admin', 'member', 'client'] as const;
|
|
@@ -226,7 +225,7 @@ export type EventAttributeType = {
|
|
|
226
225
|
|
|
227
226
|
/**
|
|
228
227
|
* Used for queue message bodies
|
|
229
|
-
* Used in context processing queue
|
|
228
|
+
* Used in context processing queue
|
|
230
229
|
*/
|
|
231
230
|
export type QueueMessageBodyType<T> = {
|
|
232
231
|
organization_id: string;
|
|
@@ -258,3 +257,16 @@ export enum FileType {
|
|
|
258
257
|
export enum QueuesList {
|
|
259
258
|
CONTEXT_PROCESS = 'context_process_queue',
|
|
260
259
|
}
|
|
260
|
+
|
|
261
|
+
export interface ModelInfo {
|
|
262
|
+
id: string;
|
|
263
|
+
name: string;
|
|
264
|
+
contextLength: number;
|
|
265
|
+
pricing: {
|
|
266
|
+
prompt: number;
|
|
267
|
+
completion: number;
|
|
268
|
+
web_search?: number;
|
|
269
|
+
cacheRead?: number;
|
|
270
|
+
cacheWrite?: number;
|
|
271
|
+
};
|
|
272
|
+
}
|