You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The prompt to search for in the cache.
289
+
minLength: 1
290
+
maxLength: 1024
245
291
example: How does semantic caching work?
246
292
similarityThreshold:
247
293
minimum: 0
@@ -252,8 +298,14 @@ components:
252
298
example: 0.9
253
299
attributes:
254
300
type: object
301
+
maxProperties: 5
302
+
propertyNames:
303
+
pattern: '^[a-zA-Z0-9_-]{1,32}$'
255
304
additionalProperties:
256
305
type: string
306
+
minLength: 1
307
+
maxLength: 500
308
+
pattern: '^[^,]*$'
257
309
description: Key-value pairs of attributes that filter the cache entries. If provided, this endpoint only returns entries that contain all given attributes.
258
310
example:
259
311
language: en
@@ -282,7 +334,8 @@ components:
282
334
id:
283
335
type: string
284
336
description: Unique identifier for the cache entry.
description: The prompt associated with the cache entry.
@@ -293,8 +346,14 @@ components:
293
346
example: Semantic caching stores and retrieves data based on meaning, not exact matches.
294
347
attributes:
295
348
type: object
349
+
maxProperties: 5
350
+
propertyNames:
351
+
pattern: '^[a-zA-Z0-9_-]{1,32}$'
296
352
additionalProperties:
297
353
type: string
354
+
minLength: 1
355
+
maxLength: 500
356
+
pattern: '^[^,]*$'
298
357
description: The key-value pairs of attributes that are associated with the cache entry.
299
358
example:
300
359
language: en
@@ -303,6 +362,8 @@ components:
303
362
type: number
304
363
description: The similarity metric used for similarity comparison.
305
364
format: float
365
+
minimum: 0
366
+
maximum: 1
306
367
example: 0.95
307
368
description: A cache entry
308
369
SetEntryRequest:
@@ -315,22 +376,33 @@ components:
315
376
example: How does semantic caching work?
316
377
type: string
317
378
description: The prompt for the entry.
379
+
minLength: 1
380
+
maxLength: 1024
318
381
response:
319
382
example: Semantic caching stores and retrieves data based on meaning, not exact matches.
320
383
type: string
321
384
description: The response to the prompt for the entry.
322
385
attributes:
323
386
type: object
387
+
maxProperties: 5
388
+
propertyNames:
389
+
pattern: '^[a-zA-Z0-9_-]{1,32}$'
324
390
additionalProperties:
325
391
type: string
392
+
minLength: 1
393
+
maxLength: 500
394
+
pattern: '^[^,]*$'
326
395
description: Key-value pairs of attributes to be associated with the entry. These can be used for filtering when searching for entries. All attribute names that can be associated with an entry must be defined during cache creation.
327
396
example:
328
397
language: en
329
398
topic: ai
330
399
ttlMillis:
331
400
type: integer
332
-
description: The entry's time-to-live, in milliseconds.
401
+
description: The entry's time-to-live, in milliseconds. If not set, the cache's default TTL is used.
333
402
format: int64
403
+
minimum: 1
404
+
maximum: 31556952000
405
+
example: 60000
334
406
description: Request to add a cache entry to the cache
335
407
SetEntryResponse:
336
408
required:
@@ -340,6 +412,7 @@ components:
340
412
entryId:
341
413
type: string
342
414
description: The ID of the entry that was added to the cache.
415
+
pattern: '^[a-f0-9]{32}$'
343
416
description: Response representing a successful cache entry addition
344
417
DeleteEntriesRequest:
345
418
required:
@@ -348,8 +421,14 @@ components:
348
421
properties:
349
422
attributes:
350
423
type: object
424
+
maxProperties: 5
425
+
propertyNames:
426
+
pattern: '^[a-zA-Z0-9_-]{1,32}$'
351
427
additionalProperties:
352
428
type: string
429
+
minLength: 1
430
+
maxLength: 500
431
+
pattern: '^[^,]*$'
353
432
description: Key-value pairs of attributes associated with the cache entries to delete. If provided, this endpoint only deletes entries that contain all given attributes. If not provided, this endpoint deletes all entries in the cache.
354
433
example:
355
434
language: en
@@ -437,6 +516,31 @@ components:
437
516
type: string
438
517
enum:
439
518
- /errors/unauthorized
519
+
FailedDependencyErrorResponseContent:
520
+
type: object
521
+
properties:
522
+
title:
523
+
type: string
524
+
description: A short summary of the problem type.
525
+
example: Failed Dependency
526
+
status:
527
+
type: integer
528
+
default: 424
529
+
description: The HTTP status code generated by the origin server.
530
+
detail:
531
+
type: string
532
+
description: An explanation specific to this problem.
0 commit comments