@purpleschool/ai-proxy 0.4.23 → 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 +1 -1
- package/proto/ai-proxy.proto +17 -3
package/package.json
CHANGED
package/proto/ai-proxy.proto
CHANGED
|
@@ -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
|
-
|
|
293
|
-
int32
|
|
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
|
+
}
|