You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eval_protocol/quickstart/svg_agent/vercel_svg_server/README.md
+58-10Lines changed: 58 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ A Vercel serverless function that handles model calls for the SVGBench evaluatio
11
11
12
12
## Setup
13
13
14
+
### Option 1: Local Development (Recommended)
15
+
14
16
1.**Install Vercel CLI:**
15
17
```bash
16
18
npm install -g vercel
@@ -21,7 +23,28 @@ A Vercel serverless function that handles model calls for the SVGBench evaluatio
21
23
cd eval_protocol/quickstart/svg_agent/vercel_svg_server
22
24
```
23
25
24
-
3.**Deploy to Vercel:**
26
+
3.**Create .env file with your API key (optional):**
27
+
```bash
28
+
cp .env.example .env
29
+
# Edit .env and add your actual API key
30
+
```
31
+
32
+
**Note:** The API key can be provided either:
33
+
- In the request payload (automatically handled by `RemoteRolloutProcessor`)
34
+
- In a local `.env` file (fallback option)
35
+
36
+
4.**Start local development server:**
37
+
```bash
38
+
vercel dev
39
+
```
40
+
41
+
Your function will be available at `http://localhost:3000`
42
+
43
+
### Option 2: Production Deployment
44
+
45
+
1.**Follow steps 1-2 above**
46
+
47
+
2.**Deploy to Vercel:**
25
48
```bash
26
49
vercel deploy
27
50
```
@@ -30,17 +53,13 @@ A Vercel serverless function that handles model calls for the SVGBench evaluatio
30
53
- Create a new project (or link existing)
31
54
- Set project name (e.g., `svgbench-server`)
32
55
33
-
4.**Set environment variable:**
34
-
```bash
35
-
vercel env add FIREWORKS_API_KEY
36
-
# Enter your Fireworks API key when prompted
37
-
```
38
-
39
-
5.**Deploy to production:**
56
+
3.**Deploy to production:**
40
57
```bash
41
58
vercel --prod
42
59
```
43
60
61
+
**Note:** The function receives the API key in the request payload (automatically handled by `RemoteRolloutProcessor`), but can also fall back to a local `.env` file if needed.
0 commit comments