@purpleschool/ai-proxy 0.4.20 → 0.4.21
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 -15
package/package.json
CHANGED
package/proto/ai-proxy.proto
CHANGED
|
@@ -26,8 +26,6 @@ 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);
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
// Text Generation (stream)
|
|
@@ -110,6 +108,12 @@ message ImageEditorRequest {
|
|
|
110
108
|
string prompt = 2;
|
|
111
109
|
repeated string imageUrls = 3;
|
|
112
110
|
string callbackUrl = 4;
|
|
111
|
+
ImageEditorParams params = 5;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message ImageEditorParams {
|
|
115
|
+
optional string aspectRatio = 1;
|
|
116
|
+
optional string quality = 2;
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
message ImageEditorResponse {
|
|
@@ -131,6 +135,7 @@ message VideoParams {
|
|
|
131
135
|
optional string aspectRatio = 3;
|
|
132
136
|
optional string quality = 4;
|
|
133
137
|
optional string resolution = 5;
|
|
138
|
+
optional bool sound = 6;
|
|
134
139
|
}
|
|
135
140
|
|
|
136
141
|
message VideoGenerationResponse {
|
|
@@ -182,10 +187,10 @@ message TextToSpeechResponse {
|
|
|
182
187
|
}
|
|
183
188
|
|
|
184
189
|
message TextToSpeechParams {
|
|
185
|
-
optional
|
|
186
|
-
optional
|
|
187
|
-
optional
|
|
188
|
-
optional
|
|
190
|
+
optional float speed = 1;
|
|
191
|
+
optional float similarity = 2;
|
|
192
|
+
optional float stability = 3;
|
|
193
|
+
optional float style = 4;
|
|
189
194
|
}
|
|
190
195
|
|
|
191
196
|
// Music Generation
|
|
@@ -288,13 +293,4 @@ message ImageVisionImage {
|
|
|
288
293
|
string id = 1;
|
|
289
294
|
string shortDescription = 2;
|
|
290
295
|
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;
|
|
300
296
|
}
|