Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
85 lines (84 loc) · 2.63 KB
/
Copy pathrender.yaml
File metadata and controls
85 lines (84 loc) · 2.63 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
# ── Agent (LangGraph Python) — native Python with FastAPI + uvicorn ──
- type: web
name: open-generative-ui-agent
runtime: python
plan: starter
rootDir: apps/agent
buildCommand: pip install uv && uv sync
startCommand: uv run uvicorn main:app --host 0.0.0.0 --port $PORT
healthCheckPath: /health
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 70
envVars:
- key: PYTHON_VERSION
value: "3.12.6"
- key: ANTHROPIC_API_KEY
sync: false
# OpenAI key for the default ChatGPT Instant model
- key: OPENAI_API_KEY
sync: false
- key: LANGSMITH_API_KEY
sync: false
# chat-latest and gpt-* route via OpenAI, Claude names via Anthropic
# (see apps/agent/src/model.py)
- key: LLM_MODEL
value: chat-latest
- key: TYPESAFE_API_KEY
sync: false
- key: JEV_MODEL
value: jev-latest
buildFilter:
paths:
- apps/agent/**
# ── Frontend (Next.js) — native Node runtime ──
- type: web
name: open-generative-ui-app
runtime: node
plan: starter
scaling:
minInstances: 1
maxInstances: 3
targetMemoryPercent: 80
targetCPUPercent: 70
# turbo's build task dependsOn ^build, so @repo/design-system dist/ is built before the app
buildCommand: corepack enable && pnpm install --no-frozen-lockfile && pnpm exec turbo run build --filter=@repo/app
startCommand: pnpm --filter @repo/app start
healthCheckPath: /api/health
envVars:
- key: NODE_VERSION
value: "22"
# Public origin used for social-preview metadata; existing hostname retained.
- key: APP_URL
value: https://opengenerativeui.copilotkit.ai
- key: SKIP_INSTALL_DEPS
value: "true"
- key: LANGGRAPH_DEPLOYMENT_URL
fromService:
name: open-generative-ui-agent
type: web
property: hostport
- key: LANGSMITH_API_KEY
sync: false
- key: RATE_LIMIT_ENABLED
value: "false"
- key: RATE_LIMIT_WINDOW_MS
value: "60000"
- key: RATE_LIMIT_MAX
value: "40"
# Telemetry (docs/telemetry.md): count the hosted demo separately from self-hosted installs.
- key: OIUI_DISTRIBUTION
value: hosted_demo
# PostHog project key for hosted-demo page analytics; needed at build time.
- key: NEXT_PUBLIC_POSTHOG_KEY
sync: false
buildFilter:
paths:
- apps/app/**
- packages/design-system/**
- package.json
- pnpm-lock.yaml
- turbo.json