@purpleschool/ai-proxy 0.3.20 → 0.4.20
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 +11 -0
package/package.json
CHANGED
package/proto/ai-proxy.proto
CHANGED
|
@@ -26,6 +26,8 @@ service AiProxyService {
|
|
|
26
26
|
rpc GetAiModel(GetAiModelRequest) returns (GetAiModelResponse);
|
|
27
27
|
|
|
28
28
|
rpc ImageVision (ImageVisionRequest) returns (ImageVisionResponse);
|
|
29
|
+
|
|
30
|
+
rpc Moderation (ModerationRequest) returns (ModerationResponse);
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
// Text Generation (stream)
|
|
@@ -286,4 +288,13 @@ message ImageVisionImage {
|
|
|
286
288
|
string id = 1;
|
|
287
289
|
string shortDescription = 2;
|
|
288
290
|
string fullDescription = 3;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
message ModerationRequest {
|
|
294
|
+
optional string prompt = 1;
|
|
295
|
+
repeated string images = 2;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
message ModerationResponse {
|
|
299
|
+
string results = 1;
|
|
289
300
|
}
|