mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-18 14:48:12 +00:00
### TL;DR Added OpenAI SDK middleware support for SuperMemory integration, allowing direct memory injection without AI SDK dependency. ### What changed? - Added `withSupermemory` middleware for OpenAI SDK that automatically injects relevant memories into chat completions - Implemented memory search and injection functionality for OpenAI clients - Restructured the OpenAI module to separate tools and middleware functionality - Updated README with comprehensive documentation and examples for the new OpenAI middleware - Added test implementation with a Next.js API route example - Reorganized package exports to support the new structure
20 lines
335 B
TypeScript
20 lines
335 B
TypeScript
import { defineConfig } from "tsdown"
|
|
|
|
export default defineConfig({
|
|
entry: [
|
|
"src/index.ts",
|
|
"src/ai-sdk.ts",
|
|
"src/claude-memory.ts",
|
|
"src/openai/index.ts",
|
|
],
|
|
format: "esm",
|
|
sourcemap: false,
|
|
target: "es2020",
|
|
tsconfig: "./tsconfig.json",
|
|
clean: true,
|
|
minify: true,
|
|
dts: {
|
|
sourcemap: false,
|
|
},
|
|
exports: true,
|
|
})
|