MCPcopy
hub / github.com/chartbrew/chartbrew / isOpenAiApiKeySet

Function isOpenAiApiKeySet

server/api/AiRoute.js:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40};
41
42const isOpenAiApiKeySet = () => {
43 if (process.env.NODE_ENV === "production") {
44 return process.env.CB_OPENAI_API_KEY;
45 } else {
46 return process.env.CB_OPENAI_API_KEY_DEV;
47 }
48};
49
50module.exports = (app) => {
51 // Main orchestration endpoint - handles conversation creation/loading automatically

Callers 1

AiRoute.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected