mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-19 20:01:08 -05:00
Fix ENV var name
This commit is contained in:
@@ -1 +1 @@
|
|||||||
OPEN_ROUTER_API_KEY=sk-or-v1-...
|
OPENROUTER_API_KEY=sk-or-v1-...
|
||||||
|
|||||||
2
.github/workflows/code-qa.yml
vendored
2
.github/workflows/code-qa.yml
vendored
@@ -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
16642
benchmark/typescript/anagram/.pnp.cjs
generated
Executable file
File diff suppressed because one or more lines are too long
2126
benchmark/typescript/anagram/.pnp.loader.mjs
generated
Normal file
2126
benchmark/typescript/anagram/.pnp.loader.mjs
generated
Normal file
File diff suppressed because it is too large
Load Diff
BIN
benchmark/typescript/anagram/.yarn/install-state.gz
Normal file
BIN
benchmark/typescript/anagram/.yarn/install-state.gz
Normal file
Binary file not shown.
@@ -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")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user