fix: remove monorepo
This commit is contained in:
9
app/lib/.server/llm/api-key.ts
Normal file
9
app/lib/.server/llm/api-key.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { env } from 'node:process';
|
||||
|
||||
export function getAPIKey(cloudflareEnv: Env) {
|
||||
/**
|
||||
* The `cloudflareEnv` is only used when deployed or when previewing locally.
|
||||
* In development the environment variables are available through `env`.
|
||||
*/
|
||||
return env.ANTHROPIC_API_KEY || cloudflareEnv.ANTHROPIC_API_KEY;
|
||||
}
|
||||
Reference in New Issue
Block a user