cccccLean
This commit is contained in:
@@ -16,7 +16,7 @@ Developers may freely swap in other LLM SDKs and/or APIs... and alter prompt syn
|
|||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Node.js (v18 or later recommended)
|
- Node.js (v18 or later recommended)
|
||||||
- An [Anthropic API key](https://console.anthropic.com/)
|
- An LLM Platform API key
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
@@ -32,10 +32,10 @@ cd kongruity
|
|||||||
The backend expects a `.env` file containing an Anthropic API key in the root `backend/` directory. This file is git-ignored and must be created manually:
|
The backend expects a `.env` file containing an Anthropic API key in the root `backend/` directory. This file is git-ignored and must be created manually:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
echo 'ANTHROPIC_API_KEY=<your Anthropic API key>' > backend/.env
|
echo 'LLM_API_KEY=<your LLM API key>' > backend/.env
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace `<your Anthropic API key>` with your actual key.
|
Replace `<your LLM API key>` with your actual key.
|
||||||
|
|
||||||
### 3. Install dependencies
|
### 3. Install dependencies
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ describe('POST /v1/notes/cluster', () => {
|
|||||||
|
|
||||||
it('should return 500 when clusterNotes (API call) fails', async () => {
|
it('should return 500 when clusterNotes (API call) fails', async () => {
|
||||||
readFile.mockResolvedValue(JSON.stringify(MOCK_NOTES));
|
readFile.mockResolvedValue(JSON.stringify(MOCK_NOTES));
|
||||||
clusterNotes.mockRejectedValue(new Error('Anthropic API error'));
|
clusterNotes.mockRejectedValue(new Error('LLM API error'));
|
||||||
|
|
||||||
const res = await request(app).post('/v1/notes/cluster');
|
const res = await request(app).post('/v1/notes/cluster');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user