@purpleschool/ai-proxy 0.4.23 → 0.4.25

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.
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./job-status.enum"), exports);
18
+ __exportStar(require("./reasoning-effort.enum"), exports);
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REASONING_EFFORT = void 0;
4
+ var REASONING_EFFORT;
5
+ (function (REASONING_EFFORT) {
6
+ REASONING_EFFORT["LOW"] = "low";
7
+ REASONING_EFFORT["MEDIUM"] = "medium";
8
+ REASONING_EFFORT["HIGH"] = "high";
9
+ })(REASONING_EFFORT || (exports.REASONING_EFFORT = REASONING_EFFORT = {}));
@@ -1 +1,2 @@
1
1
  export * from './job-status.enum';
2
+ export * from './reasoning-effort.enum';
@@ -0,0 +1,5 @@
1
+ export enum REASONING_EFFORT {
2
+ LOW = 'low',
3
+ MEDIUM = 'medium',
4
+ HIGH = 'high',
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/ai-proxy",
3
- "version": "0.4.23",
3
+ "version": "0.4.25",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -285,12 +285,14 @@ message EmbeddingsGenerationResponse {
285
285
 
286
286
  message ImageVisionRequest {
287
287
  repeated string imageUrls = 1;
288
+ optional bool isCommunityValidation = 2;
288
289
  }
289
290
 
290
291
  message ImageVisionResponse {
291
292
  repeated ImageVisionImage images = 1;
292
- int32 inputTokens = 2;
293
- int32 outputTokens = 3;
293
+ repeated ImageVisionCommunityValidation communityValidation = 2;
294
+ int32 inputTokens = 3;
295
+ int32 outputTokens = 4;
294
296
  }
295
297
 
296
298
  message ImageVisionImage {
@@ -299,6 +301,18 @@ message ImageVisionImage {
299
301
  string fullDescription = 3;
300
302
  }
301
303
 
304
+ message ImageVisionCommunityValidation {
305
+ string fullDescription = 1;
306
+ float religiousInImageScore = 2;
307
+ float presidentOrHeadOfStateScore = 3;
308
+ float legislativeBranchScore = 4;
309
+ float disabilityInImageScore = 5;
310
+ float executiveBranchScore = 6;
311
+ float lgbtqInImageScore = 7;
312
+ float terrorismInImageScore = 8;
313
+ float extremismInImageScore = 9;
314
+ }
315
+
302
316
  message ModerationRequest {
303
317
  optional string prompt = 1;
304
318
  repeated string images = 2;
@@ -306,4 +320,4 @@ message ModerationRequest {
306
320
 
307
321
  message ModerationResponse {
308
322
  string results = 1;
309
- }
323
+ }