Changesets · Branches · Tags · Compare
| Changeset | 467f82ca977402f12f471726523cb5030fdba6e0bcd2ffc6e6ceaed4f5d8788f |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-07-07 19:54 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-07-07 19:54 -07:00 |
| Parents | da2fe8144205 |
1 file changed
modified packages/continue-sdk/typescript/src/createOpenAIClient.ts +2 −2
| @@ -71,9 +71,9 @@ | ||
| 71 | 71 | ); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if (!("apiKeyLocation" in modelConfig)) { | |
| 74 | + if (!("apiKeyLocation" in modelConfig) && !("envSecretLocations" in modelConfig)) { | |
| 75 | 75 | throw new Error( |
| 76 | - `Model ${modelName} does not have an apiKeyLocation defined`, | |
| 76 | + `Model ${modelName} does not have an apiKeyLocation or envSecretLocations defined`, | |
| 77 | 77 | ); |
| 78 | 78 | } |
| 79 | 79 |