Skip to content

Commit 76f2ac6

Browse files
authored
Merge pull request #2177 from redis/DOC-5763
LangCache: Service key -> API key
2 parents 86b5eb3 + 3a98840 commit 76f2ac6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

local_examples/langcache/langcache_sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { LangCache } from "@redis-ai/langcache";
55
const langCache = new LangCache({
66
serverURL: "https://" + process.env.HOST,
77
cacheId: process.env.CACHE_ID,
8-
serviceKey: process.env.API_KEY,
8+
apiKey: process.env.API_KEY,
99
});
1010
// STEP_END
1111

local_examples/langcache/langcache_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
lang_cache = LangCache(
77
server_url=f"https://{os.getenv('HOST', '')}",
88
cache_id=os.getenv("CACHE_ID", ""),
9-
service_key=os.getenv("API_KEY", "")
9+
api_key=os.getenv("API_KEY", "")
1010
)
1111
# STEP_END
1212

0 commit comments

Comments
 (0)