@purpleschool/ai-proxy 0.4.21 → 0.4.22
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 +15 -4
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)
|
|
@@ -187,10 +189,10 @@ message TextToSpeechResponse {
|
|
|
187
189
|
}
|
|
188
190
|
|
|
189
191
|
message TextToSpeechParams {
|
|
190
|
-
optional
|
|
191
|
-
optional
|
|
192
|
-
optional
|
|
193
|
-
optional
|
|
192
|
+
optional double speed = 1;
|
|
193
|
+
optional double similarity = 2;
|
|
194
|
+
optional double stability = 3;
|
|
195
|
+
optional double style = 4;
|
|
194
196
|
}
|
|
195
197
|
|
|
196
198
|
// Music Generation
|
|
@@ -293,4 +295,13 @@ message ImageVisionImage {
|
|
|
293
295
|
string id = 1;
|
|
294
296
|
string shortDescription = 2;
|
|
295
297
|
string fullDescription = 3;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
message ModerationRequest {
|
|
301
|
+
optional string prompt = 1;
|
|
302
|
+
repeated string images = 2;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
message ModerationResponse {
|
|
306
|
+
string results = 1;
|
|
296
307
|
}
|