Fix ENV var name

This commit is contained in:
cte
2025-01-31 15:18:20 -08:00
parent d481a5ae15
commit 5fd8d8911a
7 changed files with 18775 additions and 7 deletions

View File

@@ -2,9 +2,9 @@ import * as assert from "assert"
import * as vscode from "vscode"
suite("Roo Code Extension", () => {
test("OPEN_ROUTER_API_KEY environment variable is set", () => {
if (!process.env.OPEN_ROUTER_API_KEY) {
assert.fail("OPEN_ROUTER_API_KEY environment variable is not set")
test("OPENROUTER_API_KEY environment variable is set", () => {
if (!process.env.OPENROUTER_API_KEY) {
assert.fail("OPENROUTER_API_KEY environment variable is not set")
}
})

View File

@@ -29,10 +29,10 @@ suite("Roo Code Task", () => {
await provider.updateGlobalState("apiProvider", "openrouter")
await provider.updateGlobalState("openRouterModelId", "anthropic/claude-3.5-sonnet")
const apiKey = process.env.OPEN_ROUTER_API_KEY
const apiKey = process.env.OPENROUTER_API_KEY
if (!apiKey) {
assert.fail("OPEN_ROUTER_API_KEY environment variable is not set")
assert.fail("OPENROUTER_API_KEY environment variable is not set")
}
await provider.storeSecret("openRouterApiKey", apiKey)