MCPcopy Create free account
hub / github.com/dialect-app/dialect / _build_rpc_request

Method _build_rpc_request

dialect/providers/modules/google.py:269–282  ·  view source on GitHub ↗
(text: str, src: str, dest: str)

Source from the content-addressed store, hash-verified

267
268 @staticmethod
269 def _build_rpc_request(text: str, src: str, dest: str):
270 return json.dumps(
271 [
272 [
273 [
274 RPC_ID,
275 json.dumps([[text, src, dest, True], [None]], separators=(",", ":")),
276 None,
277 "generic",
278 ],
279 ]
280 ],
281 separators=(",", ":"),
282 )
283
284 def _get_translate_host(self, tld: str | None = None):
285 if not tld:

Callers 1

translateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected