palbase 0.45.1 → 0.46.1
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/ai/index.js +2 -2
- package/dist/backend/engine.js +2 -2
- package/dist/backend/env.js +1 -1
- package/dist/backend/index.js +3 -3
- package/dist/backend/stack.js +1 -1
- package/dist/backend/test.js +2 -2
- package/dist/chunks/{T5NWLVNS.js → 3MQSTPXN.js} +1 -1
- package/dist/chunks/{TCJ4HHXC.js → 4RC3WEO3.js} +2 -2
- package/dist/chunks/{QEE3UYFB.js → 7BFCQY2L.js} +1 -1
- package/dist/chunks/{DLQW3KGQ.js → BU53O7RM.js} +2 -2
- package/dist/chunks/{F6VBM3I5.js → CKVCAOG5.js} +2 -2
- package/dist/chunks/{GLHJ3MIB.js → DESBELZA.js} +1 -1
- package/dist/chunks/{N35KDL6X.js → E4CAIF7V.js} +1 -1
- package/dist/chunks/{XP3VGN24.js → F7V22NKJ.js} +2 -2
- package/dist/chunks/{J6F6MSZM.js → FSWNE6XK.js} +2 -2
- package/dist/chunks/{46RDJQ7Z.js → FZEBBP2Q.js} +2 -2
- package/dist/chunks/{QSGYQNNM.js → GIC7YPH4.js} +2 -2
- package/dist/chunks/{Z3MV6757.js → KLGDC25U.js} +2 -2
- package/dist/chunks/{FYZDRZ4J.js → KZTRS2SJ.js} +2 -2
- package/dist/chunks/{A2DBBW6I.js → LCQJHDUJ.js} +1 -1
- package/dist/chunks/{F6IZFYXE.js → LZBJLIIJ.js} +2 -2
- package/dist/chunks/{5QUX45OF.js → OKCLADK3.js} +1 -1
- package/dist/chunks/{WN2QJN5Z.js → OQX4NFCH.js} +1 -1
- package/dist/chunks/{4YWROGXE.js → Q37GGAQO.js} +2 -2
- package/dist/chunks/{Z4OXYSYQ.js → RR7TTQ7K.js} +2 -2
- package/dist/chunks/{P4YE64Q3.js → RWNBYK76.js} +2 -2
- package/dist/chunks/{D2O7FP4Z.js → VENT24CU.js} +2 -2
- package/dist/chunks/{IL6DK7HN.js → ZCSRRPO6.js} +2 -2
- package/dist/chunks/{TSGQB4OT.js → ZKHPCH7X.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/cloud/index.js +2 -2
- package/dist/refuse/ai.js +1 -1
- package/dist/refuse/backend.js +1 -1
- package/dist/refuse/cloud.js +1 -1
- package/dist/refuse/server.js +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/testing.js +2 -2
- package/dist/web/index.js +2 -2
- package/dist/web/message.js +2 -2
- package/dist/web/palbe.js +2 -2
- package/dist/web/paywall.js +2 -2
- package/dist/web/push-sw.js +1 -1
- package/dist/web/ssr.js +2 -2
- package/dist/web/vite.js +2 -2
- package/package.json +2 -2
- package/types/ai/src/ai.d.ts +11 -8
- package/types/ai/src/tools.d.ts +2 -3
- package/types/backend/src/database.d.ts +1 -1
- package/types/internal/src/modules/ai.d.ts +44 -36
|
@@ -12,7 +12,7 @@ export type Advisor = {
|
|
|
12
12
|
*/
|
|
13
13
|
instructions?: string;
|
|
14
14
|
/**
|
|
15
|
-
* A
|
|
15
|
+
* A model's name, as GET /ai/models says it (gpt-6-luna). Left out: the project's default.
|
|
16
16
|
*/
|
|
17
17
|
model?: string;
|
|
18
18
|
/**
|
|
@@ -108,7 +108,7 @@ export type AgentDefinition = {
|
|
|
108
108
|
*/
|
|
109
109
|
max_tool_calls?: number;
|
|
110
110
|
/**
|
|
111
|
-
* A
|
|
111
|
+
* A model's name, as GET /ai/models says it (gpt-6-luna). Left out: the project's default.
|
|
112
112
|
*/
|
|
113
113
|
model?: string;
|
|
114
114
|
/**
|
|
@@ -375,10 +375,18 @@ export type ChatModel = {
|
|
|
375
375
|
* Whether it is the model a turn that names none runs on.
|
|
376
376
|
*/
|
|
377
377
|
default: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Set on a deprecated model — still offered and still run, and no new code should name it; null on every other.
|
|
380
|
+
*/
|
|
381
|
+
deprecated: ModelDeprecation | null;
|
|
378
382
|
/**
|
|
379
383
|
* What it is for.
|
|
380
384
|
*/
|
|
381
385
|
description: string;
|
|
386
|
+
/**
|
|
387
|
+
* Its name as people read it (GPT-6 Luna).
|
|
388
|
+
*/
|
|
389
|
+
display_name: string;
|
|
382
390
|
/**
|
|
383
391
|
* Whether anyone says which rungs it takes: false offers none but the provider's own.
|
|
384
392
|
*/
|
|
@@ -388,7 +396,7 @@ export type ChatModel = {
|
|
|
388
396
|
*/
|
|
389
397
|
efforts: string[];
|
|
390
398
|
/**
|
|
391
|
-
*
|
|
399
|
+
* The same model on the connection that serves it, as connection:model.
|
|
392
400
|
*/
|
|
393
401
|
id: string;
|
|
394
402
|
/**
|
|
@@ -400,7 +408,7 @@ export type ChatModel = {
|
|
|
400
408
|
*/
|
|
401
409
|
max_output_tokens: number;
|
|
402
410
|
/**
|
|
403
|
-
* Its name
|
|
411
|
+
* Its name: what a call names it by (gpt-6-luna), with no provider.
|
|
404
412
|
*/
|
|
405
413
|
name: string;
|
|
406
414
|
price: ChatModelPrice;
|
|
@@ -408,10 +416,6 @@ export type ChatModel = {
|
|
|
408
416
|
* The provider connection that serves it.
|
|
409
417
|
*/
|
|
410
418
|
provider: string;
|
|
411
|
-
/**
|
|
412
|
-
* The roles it carries: fast, default, strong.
|
|
413
|
-
*/
|
|
414
|
-
roles: string[];
|
|
415
419
|
};
|
|
416
420
|
/**
|
|
417
421
|
* A text model's list price per million tokens.
|
|
@@ -653,6 +657,10 @@ export type DecisionRequest = {
|
|
|
653
657
|
* An embedding model.
|
|
654
658
|
*/
|
|
655
659
|
export type EmbeddingModel = {
|
|
660
|
+
/**
|
|
661
|
+
* Whether it is the model a request that names none runs on.
|
|
662
|
+
*/
|
|
663
|
+
default: boolean;
|
|
656
664
|
/**
|
|
657
665
|
* Its vectors' length, and the most that can be asked for.
|
|
658
666
|
*/
|
|
@@ -662,13 +670,13 @@ export type EmbeddingModel = {
|
|
|
662
670
|
*/
|
|
663
671
|
input_usd_per_mtok: number;
|
|
664
672
|
/**
|
|
665
|
-
* The model, as
|
|
673
|
+
* The same model on the connection that serves it, as connection:model.
|
|
666
674
|
*/
|
|
667
675
|
model: string;
|
|
668
676
|
/**
|
|
669
|
-
*
|
|
677
|
+
* Its name: what a request names it by.
|
|
670
678
|
*/
|
|
671
|
-
|
|
679
|
+
name: string;
|
|
672
680
|
};
|
|
673
681
|
/**
|
|
674
682
|
* The vectors.
|
|
@@ -708,7 +716,7 @@ export type EmbeddingsRequest = {
|
|
|
708
716
|
*/
|
|
709
717
|
input: string[];
|
|
710
718
|
/**
|
|
711
|
-
*
|
|
719
|
+
* An embedding model's name (GET /ai/models), or left out for the default.
|
|
712
720
|
*/
|
|
713
721
|
model?: string;
|
|
714
722
|
};
|
|
@@ -1139,6 +1147,10 @@ export type ImageInput = {
|
|
|
1139
1147
|
* An image model.
|
|
1140
1148
|
*/
|
|
1141
1149
|
export type ImageModel = {
|
|
1150
|
+
/**
|
|
1151
|
+
* Whether it is the model a request that names none runs on.
|
|
1152
|
+
*/
|
|
1153
|
+
default: boolean;
|
|
1142
1154
|
/**
|
|
1143
1155
|
* List price of a million reference picture tokens, in US dollars.
|
|
1144
1156
|
*/
|
|
@@ -1148,13 +1160,13 @@ export type ImageModel = {
|
|
|
1148
1160
|
*/
|
|
1149
1161
|
image_output_usd_per_mtok: number;
|
|
1150
1162
|
/**
|
|
1151
|
-
* The model, as
|
|
1163
|
+
* The same model on the connection that serves it, as connection:model.
|
|
1152
1164
|
*/
|
|
1153
1165
|
model: string;
|
|
1154
1166
|
/**
|
|
1155
|
-
*
|
|
1167
|
+
* Its name: what a request names it by.
|
|
1156
1168
|
*/
|
|
1157
|
-
|
|
1169
|
+
name: string;
|
|
1158
1170
|
/**
|
|
1159
1171
|
* List price of a million prompt tokens, in US dollars.
|
|
1160
1172
|
*/
|
|
@@ -1178,7 +1190,7 @@ export type ImageRequest = {
|
|
|
1178
1190
|
format?: string;
|
|
1179
1191
|
mask?: ImageInput;
|
|
1180
1192
|
/**
|
|
1181
|
-
*
|
|
1193
|
+
* An image model's name (GET /ai/models), or left out for the default.
|
|
1182
1194
|
*/
|
|
1183
1195
|
model?: string;
|
|
1184
1196
|
/**
|
|
@@ -1449,6 +1461,19 @@ export type MessageVoice = {
|
|
|
1449
1461
|
*/
|
|
1450
1462
|
role: string;
|
|
1451
1463
|
};
|
|
1464
|
+
/**
|
|
1465
|
+
* A deprecated model: still offered and still run, and no new code should name it.
|
|
1466
|
+
*/
|
|
1467
|
+
export type ModelDeprecation = {
|
|
1468
|
+
/**
|
|
1469
|
+
* The day it was deprecated (YYYY-MM-DD).
|
|
1470
|
+
*/
|
|
1471
|
+
since: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* The name of the model to name in its place.
|
|
1474
|
+
*/
|
|
1475
|
+
use_instead: string;
|
|
1476
|
+
};
|
|
1452
1477
|
/**
|
|
1453
1478
|
* What a project may name.
|
|
1454
1479
|
*/
|
|
@@ -1465,10 +1490,6 @@ export type Models = {
|
|
|
1465
1490
|
* Image models, with their list prices.
|
|
1466
1491
|
*/
|
|
1467
1492
|
images: ImageModel[];
|
|
1468
|
-
/**
|
|
1469
|
-
* The roles a text model is chosen by.
|
|
1470
|
-
*/
|
|
1471
|
-
text: TextModel[];
|
|
1472
1493
|
/**
|
|
1473
1494
|
* The providers whose models could not be listed just now: their models are missing from chat until they answer.
|
|
1474
1495
|
*/
|
|
@@ -1987,7 +2008,7 @@ export type ResponseRequest = {
|
|
|
1987
2008
|
[key: string]: string;
|
|
1988
2009
|
};
|
|
1989
2010
|
/**
|
|
1990
|
-
* A
|
|
2011
|
+
* A model's name, as GET /ai/models says it (gpt-6-luna), or left out for the project's default. A deprecated model still runs; the catalogue says what to name instead.
|
|
1991
2012
|
*/
|
|
1992
2013
|
model?: string;
|
|
1993
2014
|
/**
|
|
@@ -2199,7 +2220,7 @@ export type Subagent = {
|
|
|
2199
2220
|
*/
|
|
2200
2221
|
instructions?: string;
|
|
2201
2222
|
/**
|
|
2202
|
-
* Its model
|
|
2223
|
+
* Its model's name (GET /ai/models). Left out: the project's default.
|
|
2203
2224
|
*/
|
|
2204
2225
|
model?: string;
|
|
2205
2226
|
/**
|
|
@@ -2458,19 +2479,6 @@ export type SyncProblem = {
|
|
|
2458
2479
|
type?: string;
|
|
2459
2480
|
[key: string]: unknown;
|
|
2460
2481
|
};
|
|
2461
|
-
/**
|
|
2462
|
-
* A role a text model is chosen by.
|
|
2463
|
-
*/
|
|
2464
|
-
export type TextModel = {
|
|
2465
|
-
/**
|
|
2466
|
-
* What it is for.
|
|
2467
|
-
*/
|
|
2468
|
-
description: string;
|
|
2469
|
-
/**
|
|
2470
|
-
* The role.
|
|
2471
|
-
*/
|
|
2472
|
-
role: string;
|
|
2473
|
-
};
|
|
2474
2482
|
/**
|
|
2475
2483
|
* The support line's answer: what to do, and whether it was logged as something Palbase lacks — then with the case it was logged under.
|
|
2476
2484
|
*/
|
|
@@ -4155,7 +4163,7 @@ export declare function client(t: Transport): {
|
|
|
4155
4163
|
/**
|
|
4156
4164
|
* What a project may name
|
|
4157
4165
|
*
|
|
4158
|
-
*
|
|
4166
|
+
* Every text model a turn may name (the default and a deprecated one marked), and the embedding and image models, with their list prices.
|
|
4159
4167
|
*/
|
|
4160
4168
|
listModels(input?: {
|
|
4161
4169
|
signal?: AbortSignal;
|