@swiss-ai-hub/web 0.291.5 → 0.291.7

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.
@@ -221,9 +221,19 @@ const advancedPricingItems = computed<Array<{ key: string, label: string, value:
221
221
  },
222
222
  { key: 'output_cost_per_image', label: t('models.modelDetails.imageCost'), value: info.output_cost_per_image },
223
223
  {
224
- key: 'search_context_cost_per_query',
225
- label: t('models.modelDetails.searchContextCost'),
226
- value: info.search_context_cost_per_query,
224
+ key: 'search_context_cost_per_query_low',
225
+ label: t('models.modelDetails.searchContextCostLow'),
226
+ value: info.search_context_cost_per_query?.search_context_size_low,
227
+ },
228
+ {
229
+ key: 'search_context_cost_per_query_medium',
230
+ label: t('models.modelDetails.searchContextCostMedium'),
231
+ value: info.search_context_cost_per_query?.search_context_size_medium,
232
+ },
233
+ {
234
+ key: 'search_context_cost_per_query_high',
235
+ label: t('models.modelDetails.searchContextCostHigh'),
236
+ value: info.search_context_cost_per_query?.search_context_size_high,
227
237
  },
228
238
  ]
229
239
 
@@ -39,7 +39,9 @@ models:
39
39
  outputCostAbove128k: Output-Kosten (über 128K)
40
40
  outputCostAbove200k: Output-Kosten (über 200K)
41
41
  imageCost: Bild-Kosten
42
- searchContextCost: Suchkontext-Kosten
42
+ searchContextCostLow: Suchkontext-Kosten (Niedrig)
43
+ searchContextCostMedium: Suchkontext-Kosten (Mittel)
44
+ searchContextCostHigh: Suchkontext-Kosten (Hoch)
43
45
  rateLimits: Rate Limits
44
46
  tokensPerMinute: Token pro Minute
45
47
  requestsPerMinute: Anfragen pro Minute
@@ -39,7 +39,9 @@ models:
39
39
  outputCostAbove128k: Output Cost (Above 128K)
40
40
  outputCostAbove200k: Output Cost (Above 200K)
41
41
  imageCost: Image Cost
42
- searchContextCost: Search Context Cost
42
+ searchContextCostLow: Search Context Cost (Low)
43
+ searchContextCostMedium: Search Context Cost (Medium)
44
+ searchContextCostHigh: Search Context Cost (High)
43
45
  rateLimits: Rate Limits
44
46
  tokensPerMinute: Tokens per Minute
45
47
  requestsPerMinute: Requests per Minute
@@ -39,7 +39,9 @@ models:
39
39
  outputCostAbove128k: Coût de sortie (au-dessus de 128K)
40
40
  outputCostAbove200k: Coût de sortie (au-dessus de 200K)
41
41
  imageCost: Coût d'image
42
- searchContextCost: Coût du contexte de recherche
42
+ searchContextCostLow: Coût du contexte de recherche (Faible)
43
+ searchContextCostMedium: Coût du contexte de recherche (Moyen)
44
+ searchContextCostHigh: Coût du contexte de recherche (Élevé)
43
45
  rateLimits: Limites de taux
44
46
  tokensPerMinute: Jetons par minute
45
47
  requestsPerMinute: Requêtes par minute
@@ -39,7 +39,9 @@ models:
39
39
  outputCostAbove128k: Costo output (sopra 128K)
40
40
  outputCostAbove200k: Costo output (sopra 200K)
41
41
  imageCost: Costo immagine
42
- searchContextCost: Costo contesto ricerca
42
+ searchContextCostLow: Costo contesto ricerca (Basso)
43
+ searchContextCostMedium: Costo contesto ricerca (Medio)
44
+ searchContextCostHigh: Costo contesto ricerca (Alto)
43
45
  rateLimits: Limiti di velocità
44
46
  tokensPerMinute: Token per minuto
45
47
  requestsPerMinute: Richieste per minuto
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "bbv Software Services AG (https://www.bbv.ch)",
5
5
  "type": "module",
6
- "version": "0.291.5",
6
+ "version": "0.291.7",
7
7
  "description": "Swiss AI Hub - Admin & Management UI (Nuxt 3 layer)",
8
8
  "main": "./nuxt.config.ts",
9
9
  "repository": {
@@ -835,6 +835,7 @@ export {
835
835
  type RouterEventWritable,
836
836
  type RunStatistics,
837
837
  type RunStatisticsWritable,
838
+ type SearchContextCostPerQueryDto,
838
839
  type SearchOrganizationMemoriesData,
839
840
  type SearchOrganizationMemoriesError,
840
841
  type SearchOrganizationMemoriesErrors,
@@ -13893,7 +13893,14 @@ export const ModelDetailsSchema = {
13893
13893
  export const ModelInfoDTOSchema = {
13894
13894
  properties: {
13895
13895
  mode: {
13896
- type: "string",
13896
+ anyOf: [
13897
+ {
13898
+ type: "string",
13899
+ },
13900
+ {
13901
+ type: "null",
13902
+ },
13903
+ ],
13897
13904
  title: "Mode",
13898
13905
  description:
13899
13906
  "The mode of the model (e.g., 'chat', 'completion', 'embedding')",
@@ -14094,14 +14101,13 @@ export const ModelInfoDTOSchema = {
14094
14101
  search_context_cost_per_query: {
14095
14102
  anyOf: [
14096
14103
  {
14097
- type: "number",
14104
+ $ref: "#/components/schemas/SearchContextCostPerQueryDTO",
14098
14105
  },
14099
14106
  {
14100
14107
  type: "null",
14101
14108
  },
14102
14109
  ],
14103
- title: "Search Context Cost Per Query",
14104
- description: "Cost per search context query",
14110
+ description: "Cost per search context query by context size",
14105
14111
  },
14106
14112
  output_vector_size: {
14107
14113
  anyOf: [
@@ -14348,7 +14354,6 @@ export const ModelInfoDTOSchema = {
14348
14354
  },
14349
14355
  },
14350
14356
  type: "object",
14351
- required: ["mode"],
14352
14357
  title: "ModelInfoDTO",
14353
14358
  } as const;
14354
14359
 
@@ -18400,6 +18405,51 @@ export const RunStatisticsSchema = {
18400
18405
  description: "Statistics for a single run, intended for API response.",
18401
18406
  } as const;
18402
18407
 
18408
+ export const SearchContextCostPerQueryDTOSchema = {
18409
+ properties: {
18410
+ search_context_size_low: {
18411
+ anyOf: [
18412
+ {
18413
+ type: "number",
18414
+ },
18415
+ {
18416
+ type: "null",
18417
+ },
18418
+ ],
18419
+ title: "Search Context Size Low",
18420
+ description: "Cost per query with low search context size",
18421
+ },
18422
+ search_context_size_medium: {
18423
+ anyOf: [
18424
+ {
18425
+ type: "number",
18426
+ },
18427
+ {
18428
+ type: "null",
18429
+ },
18430
+ ],
18431
+ title: "Search Context Size Medium",
18432
+ description: "Cost per query with medium search context size",
18433
+ },
18434
+ search_context_size_high: {
18435
+ anyOf: [
18436
+ {
18437
+ type: "number",
18438
+ },
18439
+ {
18440
+ type: "null",
18441
+ },
18442
+ ],
18443
+ title: "Search Context Size High",
18444
+ description: "Cost per query with high search context size",
18445
+ },
18446
+ },
18447
+ type: "object",
18448
+ title: "SearchContextCostPerQueryDTO",
18449
+ description:
18450
+ "LiteLLM reports search context cost per query broken down by context size, not as a single value.",
18451
+ } as const;
18452
+
18403
18453
  export const SelectSchema = {
18404
18454
  properties: {
18405
18455
  is_formkit_element: {
@@ -9359,7 +9359,7 @@ export type ModelInfoDto = {
9359
9359
  *
9360
9360
  * The mode of the model (e.g., 'chat', 'completion', 'embedding')
9361
9361
  */
9362
- mode: string;
9362
+ mode?: string | null;
9363
9363
  /**
9364
9364
  * Max Input Tokens
9365
9365
  *
@@ -9457,11 +9457,9 @@ export type ModelInfoDto = {
9457
9457
  */
9458
9458
  output_cost_per_image?: number | null;
9459
9459
  /**
9460
- * Search Context Cost Per Query
9461
- *
9462
- * Cost per search context query
9460
+ * Cost per search context query by context size
9463
9461
  */
9464
- search_context_cost_per_query?: number | null;
9462
+ search_context_cost_per_query?: SearchContextCostPerQueryDto | null;
9465
9463
  /**
9466
9464
  * Output Vector Size
9467
9465
  *
@@ -12408,6 +12406,32 @@ export type RunStatistics = {
12408
12406
  agent: MinimalAgentInstanceDto;
12409
12407
  };
12410
12408
 
12409
+ /**
12410
+ * SearchContextCostPerQueryDTO
12411
+ *
12412
+ * LiteLLM reports search context cost per query broken down by context size, not as a single value.
12413
+ */
12414
+ export type SearchContextCostPerQueryDto = {
12415
+ /**
12416
+ * Search Context Size Low
12417
+ *
12418
+ * Cost per query with low search context size
12419
+ */
12420
+ search_context_size_low?: number | null;
12421
+ /**
12422
+ * Search Context Size Medium
12423
+ *
12424
+ * Cost per query with medium search context size
12425
+ */
12426
+ search_context_size_medium?: number | null;
12427
+ /**
12428
+ * Search Context Size High
12429
+ *
12430
+ * Cost per query with high search context size
12431
+ */
12432
+ search_context_size_high?: number | null;
12433
+ };
12434
+
12411
12435
  /**
12412
12436
  * Select
12413
12437
  *