| 1 | import * as Alchemy from "alchemy"; |
| 2 | import * as GCP from "alchemy/GCP"; |
| 3 | import * as Effect from "effect/Effect"; |
| 4 | import Chat from "./src/Chat.ts"; |
| 5 | |
| 6 | export default Alchemy.Stack( |
| 7 | "GcpVertexAiExample", |
| 8 | { providers: GCP.providers(), state: Alchemy.localState() }, |
| 9 | Effect.gen(function* () { |
| 10 | const chat = yield* Chat; |
| 11 | return { |
| 12 | url: chat.uri, |
| 13 | serviceName: chat.name, |
| 14 | serviceAccount: chat.serviceAccount, |
| 15 | }; |
| 16 | }), |
| 17 | ); |