@purpleschool/ai-proxy 0.2.19 → 0.3.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/ai-proxy",
3
- "version": "0.2.19",
3
+ "version": "0.3.20",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -24,6 +24,8 @@ service AiProxyService {
24
24
 
25
25
  rpc GetAllAiModels(GetAllAiModelsRequest) returns (GetAllAiModelsResponse);
26
26
  rpc GetAiModel(GetAiModelRequest) returns (GetAiModelResponse);
27
+
28
+ rpc ImageVision (ImageVisionRequest) returns (ImageVisionResponse);
27
29
  }
28
30
 
29
31
  // Text Generation (stream)
@@ -178,10 +180,10 @@ message TextToSpeechResponse {
178
180
  }
179
181
 
180
182
  message TextToSpeechParams {
181
- optional float speed = 1;
182
- optional float similarity = 2;
183
- optional float stability = 3;
184
- optional float style = 4;
183
+ optional double speed = 1;
184
+ optional double similarity = 2;
185
+ optional double stability = 3;
186
+ optional double style = 4;
185
187
  }
186
188
 
187
189
  // Music Generation
@@ -268,4 +270,20 @@ message Embedding {
268
270
 
269
271
  message EmbeddingsGenerationResponse {
270
272
  repeated Embedding data = 1;
273
+ }
274
+
275
+ message ImageVisionRequest {
276
+ repeated string imageUrls = 1;
277
+ }
278
+
279
+ message ImageVisionResponse {
280
+ repeated ImageVisionImage images = 1;
281
+ int32 inputTokens = 2;
282
+ int32 outputTokens = 3;
283
+ }
284
+
285
+ message ImageVisionImage {
286
+ string id = 1;
287
+ string shortDescription = 2;
288
+ string fullDescription = 3;
271
289
  }