-
Notifications
You must be signed in to change notification settings - Fork 0
/
litellm-cdk.ts
67 lines (63 loc) · 2.98 KB
/
litellm-cdk.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import { LitellmCdkStack } from '../lib/litellm-cdk-stack';
const app = new cdk.App();
const architecture = app.node.tryGetContext('architecture');
const liteLLMVersion = app.node.tryGetContext('liteLLMVersion');
const ecrLitellmRepository = String(app.node.tryGetContext("ecrLitellmRepository"));
const ecrMiddlewareRepository = String(app.node.tryGetContext("ecrMiddlewareRepository"));
const certificateArn = String(app.node.tryGetContext("certificateArn"));
const domainName = String(app.node.tryGetContext("domainName"));
const logBucketArn = String(app.node.tryGetContext("logBucketArn"));
const openaiApiKey = String(app.node.tryGetContext("openaiApiKey"));
const azureOpenAiApiKey = String(app.node.tryGetContext("azureOpenAiApiKey"));
const azureApiKey = String(app.node.tryGetContext("azureApiKey"));
const anthropicApiKey = String(app.node.tryGetContext("anthropicApiKey"));
const groqApiKey = String(app.node.tryGetContext("groqApiKey"));
const cohereApiKey = String(app.node.tryGetContext("cohereApiKey"));
const coApiKey = String(app.node.tryGetContext("coApiKey"));
const hfToken = String(app.node.tryGetContext("hfToken"));
const huggingfaceApiKey = String(app.node.tryGetContext("huggingfaceApiKey"));
const databricksApiKey = String(app.node.tryGetContext("databricksApiKey"));
const geminiApiKey = String(app.node.tryGetContext("geminiApiKey"));
const codestralApiKey = String(app.node.tryGetContext("codestralApiKey"));
const mistralApiKey = String(app.node.tryGetContext("mistralApiKey"));
const azureAiApiKey = String(app.node.tryGetContext("azureAiApiKey"));
const nvidiaNimApiKey = String(app.node.tryGetContext("nvidiaNimApiKey"));
const xaiApiKey = String(app.node.tryGetContext("xaiApiKey"));
const perplexityaiApiKey = String(app.node.tryGetContext("perplexityaiApiKey"));
const githubApiKey = String(app.node.tryGetContext("githubApiKey"));
const deepseekApiKey = String(app.node.tryGetContext("deepseekApiKey"));
new LitellmCdkStack(app, 'LitellmCdkStack', {
domainName: domainName,
certificateArn: certificateArn,
liteLLMVersion: liteLLMVersion,
architecture: architecture,
ecrLitellmRepository: ecrLitellmRepository,
ecrMiddlewareRepository: ecrMiddlewareRepository,
logBucketArn: logBucketArn,
openaiApiKey: openaiApiKey,
azureOpenAiApiKey: azureOpenAiApiKey,
azureApiKey: azureApiKey,
anthropicApiKey: anthropicApiKey,
groqApiKey: groqApiKey,
cohereApiKey: cohereApiKey,
coApiKey: coApiKey,
hfToken: hfToken,
huggingfaceApiKey: huggingfaceApiKey,
databricksApiKey: databricksApiKey,
geminiApiKey: geminiApiKey,
codestralApiKey: codestralApiKey,
mistralApiKey: mistralApiKey,
azureAiApiKey: azureAiApiKey,
nvidiaNimApiKey: nvidiaNimApiKey,
xaiApiKey: xaiApiKey,
perplexityaiApiKey: perplexityaiApiKey,
githubApiKey: githubApiKey,
deepseekApiKey: deepseekApiKey,
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION
}
});