weave-python 0.27.0__py3-none-any.whl → 0.28.1__py3-none-any.whl
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.
- weave/weaveapi/llmx/v1/architecture_pb2.py +74 -0
- weave/weaveapi/llmx/v1/architecture_pb2.pyi +1323 -0
- weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -0
- weave/weaveapi/llmx/v1/capabilities_pb2.pyi +1613 -0
- weave/weaveapi/llmx/v1/model_pb2.py +54 -0
- weave/weaveapi/{modex → llmx}/v1/model_pb2.pyi +294 -189
- weave/weaveapi/llmx/v1/model_pb2_grpc.py +2 -0
- weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +20 -0
- weave/weaveapi/llmx/v1/pricing_pb2.py +54 -0
- weave/weaveapi/llmx/v1/pricing_pb2.pyi +597 -0
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.py +2 -0
- weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +20 -0
- weave/weaveapi/llmx/v1/provider_pb2.py +38 -0
- weave/weaveapi/{modex → llmx}/v1/provider_pb2.pyi +31 -19
- weave/weaveapi/llmx/v1/provider_pb2_grpc.py +2 -0
- weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +20 -0
- weave/weaveapi/llmx/v1/service_pb2.py +180 -0
- weave/weaveapi/{modex → llmx}/v1/service_pb2.pyi +174 -44
- weave/weaveapi/{modex → llmx}/v1/service_pb2_grpc.py +103 -105
- weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +266 -0
- {weave_python-0.27.0.dist-info → weave_python-0.28.1.dist-info}/METADATA +1 -1
- {weave_python-0.27.0.dist-info → weave_python-0.28.1.dist-info}/RECORD +27 -17
- weave/weaveapi/modex/v1/model_pb2.py +0 -58
- weave/weaveapi/modex/v1/provider_pb2.py +0 -38
- weave/weaveapi/modex/v1/service_pb2.py +0 -180
- weave/weaveapi/modex/v1/service_pb2_grpc.pyi +0 -268
- weave/weavesql/weavedb/models.py +0 -124
- weave/weavesql/weavedb/queries.py +0 -306
- /weave/weaveapi/{modex/v1/model_pb2_grpc.py → llmx/v1/architecture_pb2_grpc.py} +0 -0
- /weave/weaveapi/{modex/v1/model_pb2_grpc.pyi → llmx/v1/architecture_pb2_grpc.pyi} +0 -0
- /weave/weaveapi/{modex/v1/provider_pb2_grpc.py → llmx/v1/capabilities_pb2_grpc.py} +0 -0
- /weave/weaveapi/{modex/v1/provider_pb2_grpc.pyi → llmx/v1/capabilities_pb2_grpc.pyi} +0 -0
- {weave_python-0.27.0.dist-info → weave_python-0.28.1.dist-info}/WHEEL +0 -0
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
import grpc
|
|
5
5
|
|
|
6
|
-
from weaveapi.
|
|
6
|
+
from weaveapi.llmx.v1 import service_pb2 as weaveapi_dot_llmx_dot_v1_dot_service__pb2
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class LlmXStub(object):
|
|
10
10
|
"""Missing associated documentation comment in .proto file."""
|
|
11
11
|
|
|
12
12
|
def __init__(self, channel):
|
|
@@ -16,80 +16,80 @@ class ModexStub(object):
|
|
|
16
16
|
channel: A grpc.Channel.
|
|
17
17
|
"""
|
|
18
18
|
self.ListProviders = channel.unary_unary(
|
|
19
|
-
"/weaveapi.
|
|
20
|
-
request_serializer=
|
|
21
|
-
response_deserializer=
|
|
19
|
+
"/weaveapi.llmx.v1.LlmX/ListProviders",
|
|
20
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListProvidersRequest.SerializeToString,
|
|
21
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListProvidersResponse.FromString,
|
|
22
22
|
_registered_method=True,
|
|
23
23
|
)
|
|
24
24
|
self.GetProvider = channel.unary_unary(
|
|
25
|
-
"/weaveapi.
|
|
26
|
-
request_serializer=
|
|
27
|
-
response_deserializer=
|
|
25
|
+
"/weaveapi.llmx.v1.LlmX/GetProvider",
|
|
26
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetProviderRequest.SerializeToString,
|
|
27
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetProviderResponse.FromString,
|
|
28
28
|
_registered_method=True,
|
|
29
29
|
)
|
|
30
30
|
self.ListModels = channel.unary_unary(
|
|
31
|
-
"/weaveapi.
|
|
32
|
-
request_serializer=
|
|
33
|
-
response_deserializer=
|
|
31
|
+
"/weaveapi.llmx.v1.LlmX/ListModels",
|
|
32
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListModelsRequest.SerializeToString,
|
|
33
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListModelsResponse.FromString,
|
|
34
34
|
_registered_method=True,
|
|
35
35
|
)
|
|
36
36
|
self.GetModel = channel.unary_unary(
|
|
37
|
-
"/weaveapi.
|
|
38
|
-
request_serializer=
|
|
39
|
-
response_deserializer=
|
|
37
|
+
"/weaveapi.llmx.v1.LlmX/GetModel",
|
|
38
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelRequest.SerializeToString,
|
|
39
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelResponse.FromString,
|
|
40
40
|
_registered_method=True,
|
|
41
41
|
)
|
|
42
42
|
self.SearchModels = channel.unary_unary(
|
|
43
|
-
"/weaveapi.
|
|
44
|
-
request_serializer=
|
|
45
|
-
response_deserializer=
|
|
43
|
+
"/weaveapi.llmx.v1.LlmX/SearchModels",
|
|
44
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.SearchModelsRequest.SerializeToString,
|
|
45
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.SearchModelsResponse.FromString,
|
|
46
46
|
_registered_method=True,
|
|
47
47
|
)
|
|
48
48
|
self.CompareModels = channel.unary_unary(
|
|
49
|
-
"/weaveapi.
|
|
50
|
-
request_serializer=
|
|
51
|
-
response_deserializer=
|
|
49
|
+
"/weaveapi.llmx.v1.LlmX/CompareModels",
|
|
50
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.CompareModelsRequest.SerializeToString,
|
|
51
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.CompareModelsResponse.FromString,
|
|
52
52
|
_registered_method=True,
|
|
53
53
|
)
|
|
54
54
|
self.GetModelPriceHistory = channel.unary_unary(
|
|
55
|
-
"/weaveapi.
|
|
56
|
-
request_serializer=
|
|
57
|
-
response_deserializer=
|
|
55
|
+
"/weaveapi.llmx.v1.LlmX/GetModelPriceHistory",
|
|
56
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelPriceHistoryRequest.SerializeToString,
|
|
57
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelPriceHistoryResponse.FromString,
|
|
58
58
|
_registered_method=True,
|
|
59
59
|
)
|
|
60
60
|
self.GetModelChanges = channel.unary_unary(
|
|
61
|
-
"/weaveapi.
|
|
62
|
-
request_serializer=
|
|
63
|
-
response_deserializer=
|
|
61
|
+
"/weaveapi.llmx.v1.LlmX/GetModelChanges",
|
|
62
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelChangesRequest.SerializeToString,
|
|
63
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelChangesResponse.FromString,
|
|
64
64
|
_registered_method=True,
|
|
65
65
|
)
|
|
66
66
|
self.GetTrendingModels = channel.unary_unary(
|
|
67
|
-
"/weaveapi.
|
|
68
|
-
request_serializer=
|
|
69
|
-
response_deserializer=
|
|
67
|
+
"/weaveapi.llmx.v1.LlmX/GetTrendingModels",
|
|
68
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetTrendingModelsRequest.SerializeToString,
|
|
69
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetTrendingModelsResponse.FromString,
|
|
70
70
|
_registered_method=True,
|
|
71
71
|
)
|
|
72
72
|
self.GetRecentUpdates = channel.unary_unary(
|
|
73
|
-
"/weaveapi.
|
|
74
|
-
request_serializer=
|
|
75
|
-
response_deserializer=
|
|
73
|
+
"/weaveapi.llmx.v1.LlmX/GetRecentUpdates",
|
|
74
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetRecentUpdatesRequest.SerializeToString,
|
|
75
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetRecentUpdatesResponse.FromString,
|
|
76
76
|
_registered_method=True,
|
|
77
77
|
)
|
|
78
78
|
self.ExportData = channel.unary_unary(
|
|
79
|
-
"/weaveapi.
|
|
80
|
-
request_serializer=
|
|
81
|
-
response_deserializer=
|
|
79
|
+
"/weaveapi.llmx.v1.LlmX/ExportData",
|
|
80
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ExportDataRequest.SerializeToString,
|
|
81
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ExportDataResponse.FromString,
|
|
82
82
|
_registered_method=True,
|
|
83
83
|
)
|
|
84
84
|
self.GetStatistics = channel.unary_unary(
|
|
85
|
-
"/weaveapi.
|
|
86
|
-
request_serializer=
|
|
87
|
-
response_deserializer=
|
|
85
|
+
"/weaveapi.llmx.v1.LlmX/GetStatistics",
|
|
86
|
+
request_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetStatisticsRequest.SerializeToString,
|
|
87
|
+
response_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetStatisticsResponse.FromString,
|
|
88
88
|
_registered_method=True,
|
|
89
89
|
)
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
class
|
|
92
|
+
class LlmXServicer(object):
|
|
93
93
|
"""Missing associated documentation comment in .proto file."""
|
|
94
94
|
|
|
95
95
|
def ListProviders(self, request, context):
|
|
@@ -165,80 +165,78 @@ class ModexServicer(object):
|
|
|
165
165
|
raise NotImplementedError("Method not implemented!")
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
def
|
|
168
|
+
def add_LlmXServicer_to_server(servicer, server):
|
|
169
169
|
rpc_method_handlers = {
|
|
170
170
|
"ListProviders": grpc.unary_unary_rpc_method_handler(
|
|
171
171
|
servicer.ListProviders,
|
|
172
|
-
request_deserializer=
|
|
173
|
-
response_serializer=
|
|
172
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListProvidersRequest.FromString,
|
|
173
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListProvidersResponse.SerializeToString,
|
|
174
174
|
),
|
|
175
175
|
"GetProvider": grpc.unary_unary_rpc_method_handler(
|
|
176
176
|
servicer.GetProvider,
|
|
177
|
-
request_deserializer=
|
|
178
|
-
response_serializer=
|
|
177
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetProviderRequest.FromString,
|
|
178
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetProviderResponse.SerializeToString,
|
|
179
179
|
),
|
|
180
180
|
"ListModels": grpc.unary_unary_rpc_method_handler(
|
|
181
181
|
servicer.ListModels,
|
|
182
|
-
request_deserializer=
|
|
183
|
-
response_serializer=
|
|
182
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListModelsRequest.FromString,
|
|
183
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListModelsResponse.SerializeToString,
|
|
184
184
|
),
|
|
185
185
|
"GetModel": grpc.unary_unary_rpc_method_handler(
|
|
186
186
|
servicer.GetModel,
|
|
187
|
-
request_deserializer=
|
|
188
|
-
response_serializer=
|
|
187
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelRequest.FromString,
|
|
188
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelResponse.SerializeToString,
|
|
189
189
|
),
|
|
190
190
|
"SearchModels": grpc.unary_unary_rpc_method_handler(
|
|
191
191
|
servicer.SearchModels,
|
|
192
|
-
request_deserializer=
|
|
193
|
-
response_serializer=
|
|
192
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.SearchModelsRequest.FromString,
|
|
193
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.SearchModelsResponse.SerializeToString,
|
|
194
194
|
),
|
|
195
195
|
"CompareModels": grpc.unary_unary_rpc_method_handler(
|
|
196
196
|
servicer.CompareModels,
|
|
197
|
-
request_deserializer=
|
|
198
|
-
response_serializer=
|
|
197
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.CompareModelsRequest.FromString,
|
|
198
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.CompareModelsResponse.SerializeToString,
|
|
199
199
|
),
|
|
200
200
|
"GetModelPriceHistory": grpc.unary_unary_rpc_method_handler(
|
|
201
201
|
servicer.GetModelPriceHistory,
|
|
202
|
-
request_deserializer=
|
|
203
|
-
response_serializer=
|
|
202
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelPriceHistoryRequest.FromString,
|
|
203
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelPriceHistoryResponse.SerializeToString,
|
|
204
204
|
),
|
|
205
205
|
"GetModelChanges": grpc.unary_unary_rpc_method_handler(
|
|
206
206
|
servicer.GetModelChanges,
|
|
207
|
-
request_deserializer=
|
|
208
|
-
response_serializer=
|
|
207
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelChangesRequest.FromString,
|
|
208
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelChangesResponse.SerializeToString,
|
|
209
209
|
),
|
|
210
210
|
"GetTrendingModels": grpc.unary_unary_rpc_method_handler(
|
|
211
211
|
servicer.GetTrendingModels,
|
|
212
|
-
request_deserializer=
|
|
213
|
-
response_serializer=
|
|
212
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetTrendingModelsRequest.FromString,
|
|
213
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetTrendingModelsResponse.SerializeToString,
|
|
214
214
|
),
|
|
215
215
|
"GetRecentUpdates": grpc.unary_unary_rpc_method_handler(
|
|
216
216
|
servicer.GetRecentUpdates,
|
|
217
|
-
request_deserializer=
|
|
218
|
-
response_serializer=
|
|
217
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetRecentUpdatesRequest.FromString,
|
|
218
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetRecentUpdatesResponse.SerializeToString,
|
|
219
219
|
),
|
|
220
220
|
"ExportData": grpc.unary_unary_rpc_method_handler(
|
|
221
221
|
servicer.ExportData,
|
|
222
|
-
request_deserializer=
|
|
223
|
-
response_serializer=
|
|
222
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ExportDataRequest.FromString,
|
|
223
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.ExportDataResponse.SerializeToString,
|
|
224
224
|
),
|
|
225
225
|
"GetStatistics": grpc.unary_unary_rpc_method_handler(
|
|
226
226
|
servicer.GetStatistics,
|
|
227
|
-
request_deserializer=
|
|
228
|
-
response_serializer=
|
|
227
|
+
request_deserializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetStatisticsRequest.FromString,
|
|
228
|
+
response_serializer=weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetStatisticsResponse.SerializeToString,
|
|
229
229
|
),
|
|
230
230
|
}
|
|
231
231
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
232
|
-
"weaveapi.
|
|
232
|
+
"weaveapi.llmx.v1.LlmX", rpc_method_handlers
|
|
233
233
|
)
|
|
234
234
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
235
|
-
server.add_registered_method_handlers(
|
|
236
|
-
"weaveapi.modex.v1.Modex", rpc_method_handlers
|
|
237
|
-
)
|
|
235
|
+
server.add_registered_method_handlers("weaveapi.llmx.v1.LlmX", rpc_method_handlers)
|
|
238
236
|
|
|
239
237
|
|
|
240
238
|
# This class is part of an EXPERIMENTAL API.
|
|
241
|
-
class
|
|
239
|
+
class LlmX(object):
|
|
242
240
|
"""Missing associated documentation comment in .proto file."""
|
|
243
241
|
|
|
244
242
|
@staticmethod
|
|
@@ -257,9 +255,9 @@ class Modex(object):
|
|
|
257
255
|
return grpc.experimental.unary_unary(
|
|
258
256
|
request,
|
|
259
257
|
target,
|
|
260
|
-
"/weaveapi.
|
|
261
|
-
|
|
262
|
-
|
|
258
|
+
"/weaveapi.llmx.v1.LlmX/ListProviders",
|
|
259
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListProvidersRequest.SerializeToString,
|
|
260
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListProvidersResponse.FromString,
|
|
263
261
|
options,
|
|
264
262
|
channel_credentials,
|
|
265
263
|
insecure,
|
|
@@ -287,9 +285,9 @@ class Modex(object):
|
|
|
287
285
|
return grpc.experimental.unary_unary(
|
|
288
286
|
request,
|
|
289
287
|
target,
|
|
290
|
-
"/weaveapi.
|
|
291
|
-
|
|
292
|
-
|
|
288
|
+
"/weaveapi.llmx.v1.LlmX/GetProvider",
|
|
289
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetProviderRequest.SerializeToString,
|
|
290
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetProviderResponse.FromString,
|
|
293
291
|
options,
|
|
294
292
|
channel_credentials,
|
|
295
293
|
insecure,
|
|
@@ -317,9 +315,9 @@ class Modex(object):
|
|
|
317
315
|
return grpc.experimental.unary_unary(
|
|
318
316
|
request,
|
|
319
317
|
target,
|
|
320
|
-
"/weaveapi.
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
"/weaveapi.llmx.v1.LlmX/ListModels",
|
|
319
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListModelsRequest.SerializeToString,
|
|
320
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.ListModelsResponse.FromString,
|
|
323
321
|
options,
|
|
324
322
|
channel_credentials,
|
|
325
323
|
insecure,
|
|
@@ -347,9 +345,9 @@ class Modex(object):
|
|
|
347
345
|
return grpc.experimental.unary_unary(
|
|
348
346
|
request,
|
|
349
347
|
target,
|
|
350
|
-
"/weaveapi.
|
|
351
|
-
|
|
352
|
-
|
|
348
|
+
"/weaveapi.llmx.v1.LlmX/GetModel",
|
|
349
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelRequest.SerializeToString,
|
|
350
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelResponse.FromString,
|
|
353
351
|
options,
|
|
354
352
|
channel_credentials,
|
|
355
353
|
insecure,
|
|
@@ -377,9 +375,9 @@ class Modex(object):
|
|
|
377
375
|
return grpc.experimental.unary_unary(
|
|
378
376
|
request,
|
|
379
377
|
target,
|
|
380
|
-
"/weaveapi.
|
|
381
|
-
|
|
382
|
-
|
|
378
|
+
"/weaveapi.llmx.v1.LlmX/SearchModels",
|
|
379
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.SearchModelsRequest.SerializeToString,
|
|
380
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.SearchModelsResponse.FromString,
|
|
383
381
|
options,
|
|
384
382
|
channel_credentials,
|
|
385
383
|
insecure,
|
|
@@ -407,9 +405,9 @@ class Modex(object):
|
|
|
407
405
|
return grpc.experimental.unary_unary(
|
|
408
406
|
request,
|
|
409
407
|
target,
|
|
410
|
-
"/weaveapi.
|
|
411
|
-
|
|
412
|
-
|
|
408
|
+
"/weaveapi.llmx.v1.LlmX/CompareModels",
|
|
409
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.CompareModelsRequest.SerializeToString,
|
|
410
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.CompareModelsResponse.FromString,
|
|
413
411
|
options,
|
|
414
412
|
channel_credentials,
|
|
415
413
|
insecure,
|
|
@@ -437,9 +435,9 @@ class Modex(object):
|
|
|
437
435
|
return grpc.experimental.unary_unary(
|
|
438
436
|
request,
|
|
439
437
|
target,
|
|
440
|
-
"/weaveapi.
|
|
441
|
-
|
|
442
|
-
|
|
438
|
+
"/weaveapi.llmx.v1.LlmX/GetModelPriceHistory",
|
|
439
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelPriceHistoryRequest.SerializeToString,
|
|
440
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelPriceHistoryResponse.FromString,
|
|
443
441
|
options,
|
|
444
442
|
channel_credentials,
|
|
445
443
|
insecure,
|
|
@@ -467,9 +465,9 @@ class Modex(object):
|
|
|
467
465
|
return grpc.experimental.unary_unary(
|
|
468
466
|
request,
|
|
469
467
|
target,
|
|
470
|
-
"/weaveapi.
|
|
471
|
-
|
|
472
|
-
|
|
468
|
+
"/weaveapi.llmx.v1.LlmX/GetModelChanges",
|
|
469
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelChangesRequest.SerializeToString,
|
|
470
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetModelChangesResponse.FromString,
|
|
473
471
|
options,
|
|
474
472
|
channel_credentials,
|
|
475
473
|
insecure,
|
|
@@ -497,9 +495,9 @@ class Modex(object):
|
|
|
497
495
|
return grpc.experimental.unary_unary(
|
|
498
496
|
request,
|
|
499
497
|
target,
|
|
500
|
-
"/weaveapi.
|
|
501
|
-
|
|
502
|
-
|
|
498
|
+
"/weaveapi.llmx.v1.LlmX/GetTrendingModels",
|
|
499
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetTrendingModelsRequest.SerializeToString,
|
|
500
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetTrendingModelsResponse.FromString,
|
|
503
501
|
options,
|
|
504
502
|
channel_credentials,
|
|
505
503
|
insecure,
|
|
@@ -527,9 +525,9 @@ class Modex(object):
|
|
|
527
525
|
return grpc.experimental.unary_unary(
|
|
528
526
|
request,
|
|
529
527
|
target,
|
|
530
|
-
"/weaveapi.
|
|
531
|
-
|
|
532
|
-
|
|
528
|
+
"/weaveapi.llmx.v1.LlmX/GetRecentUpdates",
|
|
529
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetRecentUpdatesRequest.SerializeToString,
|
|
530
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetRecentUpdatesResponse.FromString,
|
|
533
531
|
options,
|
|
534
532
|
channel_credentials,
|
|
535
533
|
insecure,
|
|
@@ -557,9 +555,9 @@ class Modex(object):
|
|
|
557
555
|
return grpc.experimental.unary_unary(
|
|
558
556
|
request,
|
|
559
557
|
target,
|
|
560
|
-
"/weaveapi.
|
|
561
|
-
|
|
562
|
-
|
|
558
|
+
"/weaveapi.llmx.v1.LlmX/ExportData",
|
|
559
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.ExportDataRequest.SerializeToString,
|
|
560
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.ExportDataResponse.FromString,
|
|
563
561
|
options,
|
|
564
562
|
channel_credentials,
|
|
565
563
|
insecure,
|
|
@@ -587,9 +585,9 @@ class Modex(object):
|
|
|
587
585
|
return grpc.experimental.unary_unary(
|
|
588
586
|
request,
|
|
589
587
|
target,
|
|
590
|
-
"/weaveapi.
|
|
591
|
-
|
|
592
|
-
|
|
588
|
+
"/weaveapi.llmx.v1.LlmX/GetStatistics",
|
|
589
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetStatisticsRequest.SerializeToString,
|
|
590
|
+
weaveapi_dot_llmx_dot_v1_dot_service__pb2.GetStatisticsResponse.FromString,
|
|
593
591
|
options,
|
|
594
592
|
channel_credentials,
|
|
595
593
|
insecure,
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
import weaveapi.llmx.v1.service_pb2
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(
|
|
16
|
+
collections.abc.AsyncIterator[_T],
|
|
17
|
+
collections.abc.Iterator[_T],
|
|
18
|
+
metaclass=abc.ABCMeta,
|
|
19
|
+
): ...
|
|
20
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
21
|
+
...
|
|
22
|
+
|
|
23
|
+
class LlmXStub:
|
|
24
|
+
def __init__(
|
|
25
|
+
self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]
|
|
26
|
+
) -> None: ...
|
|
27
|
+
ListProviders: grpc.UnaryUnaryMultiCallable[
|
|
28
|
+
weaveapi.llmx.v1.service_pb2.ListProvidersRequest,
|
|
29
|
+
weaveapi.llmx.v1.service_pb2.ListProvidersResponse,
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
GetProvider: grpc.UnaryUnaryMultiCallable[
|
|
33
|
+
weaveapi.llmx.v1.service_pb2.GetProviderRequest,
|
|
34
|
+
weaveapi.llmx.v1.service_pb2.GetProviderResponse,
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
ListModels: grpc.UnaryUnaryMultiCallable[
|
|
38
|
+
weaveapi.llmx.v1.service_pb2.ListModelsRequest,
|
|
39
|
+
weaveapi.llmx.v1.service_pb2.ListModelsResponse,
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
GetModel: grpc.UnaryUnaryMultiCallable[
|
|
43
|
+
weaveapi.llmx.v1.service_pb2.GetModelRequest,
|
|
44
|
+
weaveapi.llmx.v1.service_pb2.GetModelResponse,
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
SearchModels: grpc.UnaryUnaryMultiCallable[
|
|
48
|
+
weaveapi.llmx.v1.service_pb2.SearchModelsRequest,
|
|
49
|
+
weaveapi.llmx.v1.service_pb2.SearchModelsResponse,
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
CompareModels: grpc.UnaryUnaryMultiCallable[
|
|
53
|
+
weaveapi.llmx.v1.service_pb2.CompareModelsRequest,
|
|
54
|
+
weaveapi.llmx.v1.service_pb2.CompareModelsResponse,
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
GetModelPriceHistory: grpc.UnaryUnaryMultiCallable[
|
|
58
|
+
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryRequest,
|
|
59
|
+
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryResponse,
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
GetModelChanges: grpc.UnaryUnaryMultiCallable[
|
|
63
|
+
weaveapi.llmx.v1.service_pb2.GetModelChangesRequest,
|
|
64
|
+
weaveapi.llmx.v1.service_pb2.GetModelChangesResponse,
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
GetTrendingModels: grpc.UnaryUnaryMultiCallable[
|
|
68
|
+
weaveapi.llmx.v1.service_pb2.GetTrendingModelsRequest,
|
|
69
|
+
weaveapi.llmx.v1.service_pb2.GetTrendingModelsResponse,
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
GetRecentUpdates: grpc.UnaryUnaryMultiCallable[
|
|
73
|
+
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesRequest,
|
|
74
|
+
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesResponse,
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
ExportData: grpc.UnaryUnaryMultiCallable[
|
|
78
|
+
weaveapi.llmx.v1.service_pb2.ExportDataRequest,
|
|
79
|
+
weaveapi.llmx.v1.service_pb2.ExportDataResponse,
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
GetStatistics: grpc.UnaryUnaryMultiCallable[
|
|
83
|
+
weaveapi.llmx.v1.service_pb2.GetStatisticsRequest,
|
|
84
|
+
weaveapi.llmx.v1.service_pb2.GetStatisticsResponse,
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
class LlmXAsyncStub:
|
|
88
|
+
ListProviders: grpc.aio.UnaryUnaryMultiCallable[
|
|
89
|
+
weaveapi.llmx.v1.service_pb2.ListProvidersRequest,
|
|
90
|
+
weaveapi.llmx.v1.service_pb2.ListProvidersResponse,
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
GetProvider: grpc.aio.UnaryUnaryMultiCallable[
|
|
94
|
+
weaveapi.llmx.v1.service_pb2.GetProviderRequest,
|
|
95
|
+
weaveapi.llmx.v1.service_pb2.GetProviderResponse,
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
ListModels: grpc.aio.UnaryUnaryMultiCallable[
|
|
99
|
+
weaveapi.llmx.v1.service_pb2.ListModelsRequest,
|
|
100
|
+
weaveapi.llmx.v1.service_pb2.ListModelsResponse,
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
GetModel: grpc.aio.UnaryUnaryMultiCallable[
|
|
104
|
+
weaveapi.llmx.v1.service_pb2.GetModelRequest,
|
|
105
|
+
weaveapi.llmx.v1.service_pb2.GetModelResponse,
|
|
106
|
+
]
|
|
107
|
+
|
|
108
|
+
SearchModels: grpc.aio.UnaryUnaryMultiCallable[
|
|
109
|
+
weaveapi.llmx.v1.service_pb2.SearchModelsRequest,
|
|
110
|
+
weaveapi.llmx.v1.service_pb2.SearchModelsResponse,
|
|
111
|
+
]
|
|
112
|
+
|
|
113
|
+
CompareModels: grpc.aio.UnaryUnaryMultiCallable[
|
|
114
|
+
weaveapi.llmx.v1.service_pb2.CompareModelsRequest,
|
|
115
|
+
weaveapi.llmx.v1.service_pb2.CompareModelsResponse,
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
GetModelPriceHistory: grpc.aio.UnaryUnaryMultiCallable[
|
|
119
|
+
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryRequest,
|
|
120
|
+
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryResponse,
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
GetModelChanges: grpc.aio.UnaryUnaryMultiCallable[
|
|
124
|
+
weaveapi.llmx.v1.service_pb2.GetModelChangesRequest,
|
|
125
|
+
weaveapi.llmx.v1.service_pb2.GetModelChangesResponse,
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
GetTrendingModels: grpc.aio.UnaryUnaryMultiCallable[
|
|
129
|
+
weaveapi.llmx.v1.service_pb2.GetTrendingModelsRequest,
|
|
130
|
+
weaveapi.llmx.v1.service_pb2.GetTrendingModelsResponse,
|
|
131
|
+
]
|
|
132
|
+
|
|
133
|
+
GetRecentUpdates: grpc.aio.UnaryUnaryMultiCallable[
|
|
134
|
+
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesRequest,
|
|
135
|
+
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesResponse,
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
ExportData: grpc.aio.UnaryUnaryMultiCallable[
|
|
139
|
+
weaveapi.llmx.v1.service_pb2.ExportDataRequest,
|
|
140
|
+
weaveapi.llmx.v1.service_pb2.ExportDataResponse,
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
GetStatistics: grpc.aio.UnaryUnaryMultiCallable[
|
|
144
|
+
weaveapi.llmx.v1.service_pb2.GetStatisticsRequest,
|
|
145
|
+
weaveapi.llmx.v1.service_pb2.GetStatisticsResponse,
|
|
146
|
+
]
|
|
147
|
+
|
|
148
|
+
class LlmXServicer(metaclass=abc.ABCMeta):
|
|
149
|
+
@abc.abstractmethod
|
|
150
|
+
def ListProviders(
|
|
151
|
+
self,
|
|
152
|
+
request: weaveapi.llmx.v1.service_pb2.ListProvidersRequest,
|
|
153
|
+
context: _ServicerContext,
|
|
154
|
+
) -> typing.Union[
|
|
155
|
+
weaveapi.llmx.v1.service_pb2.ListProvidersResponse,
|
|
156
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.ListProvidersResponse],
|
|
157
|
+
]: ...
|
|
158
|
+
@abc.abstractmethod
|
|
159
|
+
def GetProvider(
|
|
160
|
+
self,
|
|
161
|
+
request: weaveapi.llmx.v1.service_pb2.GetProviderRequest,
|
|
162
|
+
context: _ServicerContext,
|
|
163
|
+
) -> typing.Union[
|
|
164
|
+
weaveapi.llmx.v1.service_pb2.GetProviderResponse,
|
|
165
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.GetProviderResponse],
|
|
166
|
+
]: ...
|
|
167
|
+
@abc.abstractmethod
|
|
168
|
+
def ListModels(
|
|
169
|
+
self,
|
|
170
|
+
request: weaveapi.llmx.v1.service_pb2.ListModelsRequest,
|
|
171
|
+
context: _ServicerContext,
|
|
172
|
+
) -> typing.Union[
|
|
173
|
+
weaveapi.llmx.v1.service_pb2.ListModelsResponse,
|
|
174
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.ListModelsResponse],
|
|
175
|
+
]: ...
|
|
176
|
+
@abc.abstractmethod
|
|
177
|
+
def GetModel(
|
|
178
|
+
self,
|
|
179
|
+
request: weaveapi.llmx.v1.service_pb2.GetModelRequest,
|
|
180
|
+
context: _ServicerContext,
|
|
181
|
+
) -> typing.Union[
|
|
182
|
+
weaveapi.llmx.v1.service_pb2.GetModelResponse,
|
|
183
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.GetModelResponse],
|
|
184
|
+
]: ...
|
|
185
|
+
@abc.abstractmethod
|
|
186
|
+
def SearchModels(
|
|
187
|
+
self,
|
|
188
|
+
request: weaveapi.llmx.v1.service_pb2.SearchModelsRequest,
|
|
189
|
+
context: _ServicerContext,
|
|
190
|
+
) -> typing.Union[
|
|
191
|
+
weaveapi.llmx.v1.service_pb2.SearchModelsResponse,
|
|
192
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.SearchModelsResponse],
|
|
193
|
+
]: ...
|
|
194
|
+
@abc.abstractmethod
|
|
195
|
+
def CompareModels(
|
|
196
|
+
self,
|
|
197
|
+
request: weaveapi.llmx.v1.service_pb2.CompareModelsRequest,
|
|
198
|
+
context: _ServicerContext,
|
|
199
|
+
) -> typing.Union[
|
|
200
|
+
weaveapi.llmx.v1.service_pb2.CompareModelsResponse,
|
|
201
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.CompareModelsResponse],
|
|
202
|
+
]: ...
|
|
203
|
+
@abc.abstractmethod
|
|
204
|
+
def GetModelPriceHistory(
|
|
205
|
+
self,
|
|
206
|
+
request: weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryRequest,
|
|
207
|
+
context: _ServicerContext,
|
|
208
|
+
) -> typing.Union[
|
|
209
|
+
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryResponse,
|
|
210
|
+
collections.abc.Awaitable[
|
|
211
|
+
weaveapi.llmx.v1.service_pb2.GetModelPriceHistoryResponse
|
|
212
|
+
],
|
|
213
|
+
]: ...
|
|
214
|
+
@abc.abstractmethod
|
|
215
|
+
def GetModelChanges(
|
|
216
|
+
self,
|
|
217
|
+
request: weaveapi.llmx.v1.service_pb2.GetModelChangesRequest,
|
|
218
|
+
context: _ServicerContext,
|
|
219
|
+
) -> typing.Union[
|
|
220
|
+
weaveapi.llmx.v1.service_pb2.GetModelChangesResponse,
|
|
221
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.GetModelChangesResponse],
|
|
222
|
+
]: ...
|
|
223
|
+
@abc.abstractmethod
|
|
224
|
+
def GetTrendingModels(
|
|
225
|
+
self,
|
|
226
|
+
request: weaveapi.llmx.v1.service_pb2.GetTrendingModelsRequest,
|
|
227
|
+
context: _ServicerContext,
|
|
228
|
+
) -> typing.Union[
|
|
229
|
+
weaveapi.llmx.v1.service_pb2.GetTrendingModelsResponse,
|
|
230
|
+
collections.abc.Awaitable[
|
|
231
|
+
weaveapi.llmx.v1.service_pb2.GetTrendingModelsResponse
|
|
232
|
+
],
|
|
233
|
+
]: ...
|
|
234
|
+
@abc.abstractmethod
|
|
235
|
+
def GetRecentUpdates(
|
|
236
|
+
self,
|
|
237
|
+
request: weaveapi.llmx.v1.service_pb2.GetRecentUpdatesRequest,
|
|
238
|
+
context: _ServicerContext,
|
|
239
|
+
) -> typing.Union[
|
|
240
|
+
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesResponse,
|
|
241
|
+
collections.abc.Awaitable[
|
|
242
|
+
weaveapi.llmx.v1.service_pb2.GetRecentUpdatesResponse
|
|
243
|
+
],
|
|
244
|
+
]: ...
|
|
245
|
+
@abc.abstractmethod
|
|
246
|
+
def ExportData(
|
|
247
|
+
self,
|
|
248
|
+
request: weaveapi.llmx.v1.service_pb2.ExportDataRequest,
|
|
249
|
+
context: _ServicerContext,
|
|
250
|
+
) -> typing.Union[
|
|
251
|
+
weaveapi.llmx.v1.service_pb2.ExportDataResponse,
|
|
252
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.ExportDataResponse],
|
|
253
|
+
]: ...
|
|
254
|
+
@abc.abstractmethod
|
|
255
|
+
def GetStatistics(
|
|
256
|
+
self,
|
|
257
|
+
request: weaveapi.llmx.v1.service_pb2.GetStatisticsRequest,
|
|
258
|
+
context: _ServicerContext,
|
|
259
|
+
) -> typing.Union[
|
|
260
|
+
weaveapi.llmx.v1.service_pb2.GetStatisticsResponse,
|
|
261
|
+
collections.abc.Awaitable[weaveapi.llmx.v1.service_pb2.GetStatisticsResponse],
|
|
262
|
+
]: ...
|
|
263
|
+
|
|
264
|
+
def add_LlmXServicer_to_server(
|
|
265
|
+
servicer: LlmXServicer, server: typing.Union[grpc.Server, grpc.aio.Server]
|
|
266
|
+
) -> None: ...
|