@purpleschool/ai-proxy 0.2.19 → 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.19",
3
+ "version": "0.3.19",
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)
@@ -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
  }