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

main
ts 19 lines 493 Bytes
Raw
1 import * as ml from "@distilled.cloud/gcp/ml_v1";
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.ML.GetModel
11 */
12 export const GetModelHttp = Layer.effect(
13 GetModel,
14 makeModelHttpBinding({
15 tag: "GCP.ML.GetModel",
16 operation: ml.getProjectsModels,
17 iam: { role: "roles/ml.modelUser", on: "ml.model" },
18 }),
19 );