llama-stack-client 0.2.17-rc1 → 0.2.18-rc1

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.
@@ -5,13 +5,6 @@ import * as Core from '../core';
5
5
  import * as Shared from './shared';
6
6
 
7
7
  export class Safety extends APIResource {
8
- /**
9
- * Classifies if text and/or image inputs are potentially harmful.
10
- */
11
- create(body: SafetyCreateParams, options?: Core.RequestOptions): Core.APIPromise<CreateResponse> {
12
- return this._client.post('/v1/openai/v1/moderations', { body, ...options });
13
- }
14
-
15
8
  /**
16
9
  * Run a shield.
17
10
  */
@@ -20,57 +13,6 @@ export class Safety extends APIResource {
20
13
  }
21
14
  }
22
15
 
23
- /**
24
- * A moderation object.
25
- */
26
- export interface CreateResponse {
27
- /**
28
- * The unique identifier for the moderation request.
29
- */
30
- id: string;
31
-
32
- /**
33
- * The model used to generate the moderation results.
34
- */
35
- model: string;
36
-
37
- /**
38
- * A list of moderation objects
39
- */
40
- results: Array<CreateResponse.Result>;
41
- }
42
-
43
- export namespace CreateResponse {
44
- /**
45
- * A moderation object.
46
- */
47
- export interface Result {
48
- /**
49
- * Whether any of the below categories are flagged.
50
- */
51
- flagged: boolean;
52
-
53
- metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
54
-
55
- /**
56
- * A list of the categories, and whether they are flagged or not.
57
- */
58
- categories?: { [key: string]: boolean };
59
-
60
- /**
61
- * A list of the categories along with the input type(s) that the score applies to.
62
- */
63
- category_applied_input_types?: { [key: string]: Array<string> };
64
-
65
- /**
66
- * A list of the categories along with their scores as predicted by model.
67
- */
68
- category_scores?: { [key: string]: number };
69
-
70
- user_message?: string;
71
- }
72
- }
73
-
74
16
  /**
75
17
  * Response from running a safety shield.
76
18
  */
@@ -81,19 +23,6 @@ export interface RunShieldResponse {
81
23
  violation?: Shared.SafetyViolation;
82
24
  }
83
25
 
84
- export interface SafetyCreateParams {
85
- /**
86
- * Input (or inputs) to classify. Can be a single string, an array of strings, or
87
- * an array of multi-modal input objects similar to other models.
88
- */
89
- input: string | Array<string>;
90
-
91
- /**
92
- * The content moderation model you would like to use.
93
- */
94
- model: string;
95
- }
96
-
97
26
  export interface SafetyRunShieldParams {
98
27
  /**
99
28
  * The messages to run the shield on.
@@ -112,10 +41,5 @@ export interface SafetyRunShieldParams {
112
41
  }
113
42
 
114
43
  export declare namespace Safety {
115
- export {
116
- type CreateResponse as CreateResponse,
117
- type RunShieldResponse as RunShieldResponse,
118
- type SafetyCreateParams as SafetyCreateParams,
119
- type SafetyRunShieldParams as SafetyRunShieldParams,
120
- };
44
+ export { type RunShieldResponse as RunShieldResponse, type SafetyRunShieldParams as SafetyRunShieldParams };
121
45
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.17rc1'; // x-release-please-version
1
+ export const VERSION = '0.2.18rc1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.17rc1";
1
+ export declare const VERSION = "0.2.18rc1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.17rc1'; // x-release-please-version
4
+ exports.VERSION = '0.2.18rc1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.17rc1'; // x-release-please-version
1
+ export const VERSION = '0.2.18rc1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map