env
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'dotenv/config';
|
||||
import app from './app.js';
|
||||
|
||||
const PORT = process.env.PORT || 3001;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import Anthropic from "@anthropic-ai/sdk";
|
||||
import { anthropicApiKey } from "../.secrets.js";
|
||||
|
||||
const client = new Anthropic({
|
||||
apiKey: anthropicApiKey,
|
||||
apiKey: process.env.ANTHROPIC_API_KEY,
|
||||
});
|
||||
|
||||
const buildPrompt = (notes) => {
|
||||
|
||||
@@ -14,10 +14,6 @@ vi.mock('@anthropic-ai/sdk', () => {
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock('../.secrets.js', () => ({
|
||||
anthropicApiKey: 'test-key-not-real',
|
||||
}));
|
||||
|
||||
import { clusterNotes } from '../services/clustering.service.js';
|
||||
|
||||
const MOCK_NOTES = [
|
||||
|
||||
Reference in New Issue
Block a user