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

@@ -1 +1 @@
OPEN_ROUTER_API_KEY=sk-or-v1-... OPENROUTER_API_KEY=sk-or-v1-...

View File

@@ -57,7 +57,7 @@ jobs:
node-version: '18' node-version: '18'
cache: 'npm' cache: 'npm'
- name: Create env.integration file - name: Create env.integration file
run: echo "OPEN_ROUTER_API_KEY=${{ secrets.OPEN_ROUTER_API_KEY }}" > .env.integration run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration
- name: Check env.integration file - name: Check env.integration file
run: cat .env.integration run: cat .env.integration
- name: Install dependencies - name: Install dependencies

16642
benchmark/typescript/anagram/.pnp.cjs generated Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -2,9 +2,9 @@ import * as assert from "assert"
import * as vscode from "vscode" import * as vscode from "vscode"
suite("Roo Code Extension", () => { suite("Roo Code Extension", () => {
test("OPEN_ROUTER_API_KEY environment variable is set", () => { test("OPENROUTER_API_KEY environment variable is set", () => {
if (!process.env.OPEN_ROUTER_API_KEY) { if (!process.env.OPENROUTER_API_KEY) {
assert.fail("OPEN_ROUTER_API_KEY environment variable is not set") 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("apiProvider", "openrouter")
await provider.updateGlobalState("openRouterModelId", "anthropic/claude-3.5-sonnet") 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) { 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) await provider.storeSecret("openRouterApiKey", apiKey)