Skip to content

Commit 1c25e66

Browse files
authored
changed the Auto complete API key to OPENROUTER_API_KEY (#1692)
1 parent 2ec434a commit 1c25e66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fake-snippets-api/routes/api/autocomplete/create_autocomplete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let openai: OpenAI | null = null
77
let cachedReadme: string | null = null
88

99
function getOpenAIClient() {
10-
const apiKey = process.env.VITE_OPENROUTER_API_KEY
10+
const apiKey = process.env.OPENROUTER_API_KEY
1111
if (!apiKey) {
1212
throw new Error("Missing Api Key in env")
1313
}

0 commit comments

Comments
 (0)