@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 +1 -1
- package/proto/ai-proxy.proto +18 -0
package/package.json
CHANGED
package/proto/ai-proxy.proto
CHANGED
|
@@ -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
|
}
|