Commit 78f036e
committed
Add support for multiple Anthropic API keys
This change introduces the ability to use a secondary Anthropic API key
(ANTHROPIC_API_KEY2) in addition to the primary one. The system now
randomly selects between the two keys when making API calls, which can
help distribute load and potentially avoid rate limiting issues.
The env.mjs file has been updated to include the new ANTHROPIC_API_KEY2
environment variable, ensuring proper validation and type checking.1 parent 7397c06 commit 78f036e
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments