@purpleschool/ai-proxy 0.4.21 → 0.4.23
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 -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)
|
|
@@ -136,6 +138,8 @@ message VideoParams {
|
|
|
136
138
|
optional string quality = 4;
|
|
137
139
|
optional string resolution = 5;
|
|
138
140
|
optional bool sound = 6;
|
|
141
|
+
repeated string videoUrls = 7;
|
|
142
|
+
optional bool multiShots = 8;
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
message VideoGenerationResponse {
|
|
@@ -187,10 +191,10 @@ message TextToSpeechResponse {
|
|
|
187
191
|
}
|
|
188
192
|
|
|
189
193
|
message TextToSpeechParams {
|
|
190
|
-
optional
|
|
191
|
-
optional
|
|
192
|
-
optional
|
|
193
|
-
optional
|
|
194
|
+
optional double speed = 1;
|
|
195
|
+
optional double similarity = 2;
|
|
196
|
+
optional double stability = 3;
|
|
197
|
+
optional double style = 4;
|
|
194
198
|
}
|
|
195
199
|
|
|
196
200
|
// Music Generation
|
|
@@ -293,4 +297,13 @@ message ImageVisionImage {
|
|
|
293
297
|
string id = 1;
|
|
294
298
|
string shortDescription = 2;
|
|
295
299
|
string fullDescription = 3;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
message ModerationRequest {
|
|
303
|
+
optional string prompt = 1;
|
|
304
|
+
repeated string images = 2;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
message ModerationResponse {
|
|
308
|
+
string results = 1;
|
|
296
309
|
}
|