@purpleschool/ai-proxy 0.4.22 → 0.4.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/ai-proxy",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -138,6 +138,8 @@ message VideoParams {
138
138
  optional string quality = 4;
139
139
  optional string resolution = 5;
140
140
  optional bool sound = 6;
141
+ repeated string videoUrls = 7;
142
+ optional bool multiShots = 8;
141
143
  }
142
144
 
143
145
  message VideoGenerationResponse {
@@ -283,12 +285,14 @@ message EmbeddingsGenerationResponse {
283
285
 
284
286
  message ImageVisionRequest {
285
287
  repeated string imageUrls = 1;
288
+ optional bool isCommunityValidation = 2;
286
289
  }
287
290
 
288
291
  message ImageVisionResponse {
289
292
  repeated ImageVisionImage images = 1;
290
- int32 inputTokens = 2;
291
- int32 outputTokens = 3;
293
+ repeated ImageVisionCommunityValidation communityValidation = 2;
294
+ int32 inputTokens = 3;
295
+ int32 outputTokens = 4;
292
296
  }
293
297
 
294
298
  message ImageVisionImage {
@@ -297,6 +301,18 @@ message ImageVisionImage {
297
301
  string fullDescription = 3;
298
302
  }
299
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
+
300
316
  message ModerationRequest {
301
317
  optional string prompt = 1;
302
318
  repeated string images = 2;
@@ -304,4 +320,4 @@ message ModerationRequest {
304
320
 
305
321
  message ModerationResponse {
306
322
  string results = 1;
307
- }
323
+ }