@purpleschool/ai-proxy 0.2.18 → 0.3.19

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.18",
3
+ "version": "0.3.19",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -7,6 +7,7 @@ service AiProxyService {
7
7
  rpc TextGenerationUnary (TextGenerationUnaryRequest) returns (TextGenerationUnaryResponse);
8
8
 
9
9
  rpc ImageGeneration (ImageGenerationRequest) returns (ImageGenerationResponse);
10
+ rpc ImageGenerationAsync (ImageGenerationRequest) returns (ImageGenerationResponse);
10
11
  rpc ImageEditor (ImageEditorRequest) returns (ImageEditorResponse);
11
12
 
12
13
  rpc VideoGeneration (VideoGenerationRequest) returns (VideoGenerationResponse);
@@ -23,6 +24,8 @@ service AiProxyService {
23
24
 
24
25
  rpc GetAllAiModels(GetAllAiModelsRequest) returns (GetAllAiModelsResponse);
25
26
  rpc GetAiModel(GetAiModelRequest) returns (GetAiModelResponse);
27
+
28
+ rpc ImageVision (ImageVisionRequest) returns (ImageVisionResponse);
26
29
  }
27
30
 
28
31
  // Text Generation (stream)
@@ -267,4 +270,20 @@ message Embedding {
267
270
 
268
271
  message EmbeddingsGenerationResponse {
269
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;
270
289
  }