@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 19 lines 530 Bytes
Raw
1 import * as translate from "@distilled.cloud/gcp/translate_v3";
2 import * as Layer from "effect/Layer";
3 import { makeModelHttpBinding } from "./BindingHttp.ts";
4 import { GetModel } from "./GetModel.ts";
5
6 /**
7 * HTTP implementation of {@link GetModel}.
8 *
9 * @layer
10 * @provides GCP.Translate.GetModel
11 */
12 export const GetModelHttp = Layer.effect(
13 GetModel,
14 makeModelHttpBinding({
15 tag: "GCP.Translate.GetModel",
16 operation: translate.getProjectsLocationsModels,
17 iam: { role: "roles/cloudtranslate.viewer" },
18 }),
19 );