Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,19 @@ response = client.chat.completions.create(
# Cache hit - returns instantly
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "What's France's capital city?"}]
messages=[{"role": "user", "content": "Tell me France's capital city"}]
)
```

Node.js follows a similar pattern of changing the base URL to point to your Semcache host:

```js
const OpenAI = require('openai');

// Point to your Semcache host instead of OpenAI
const openai = new OpenAI({baseURL: 'http://localhost:8080', apiKey: 'your-key'});
```

## Features

- **🧠 Completely in-memory** - Prompts, responses and the vector database are stored in-memory
Expand Down