@node-llm/core 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <p align="left">
2
2
  <a href="https://node-llm.eshaiju.com/">
3
- <img src="docs/assets/images/logo.jpg" alt="NodeLLM logo" width="300" />
3
+ <img src="https://node-llm.eshaiju.com/assets/images/logo.jpg" alt="NodeLLM logo" width="300" />
4
4
  </a>
5
5
  </p>
6
6
 
@@ -87,7 +87,7 @@ for await (const chunk of chat.stream("Explain event-driven architecture")) {
87
87
 
88
88
  Built with NodeLLM - Multi-provider AI analysis, tool calling, and structured outputs working together.
89
89
 
90
- **[View Example →](examples/brand-perception-checker/)**
90
+ **[View Example →](https://github.com/node-llm/node-llm/tree/main/examples/applications/brand-perception-checker)**
91
91
 
92
92
  ---
93
93
 
@@ -208,6 +208,23 @@ await NodeLLM.paint("A cyberpunk city in rain");
208
208
  await NodeLLM.transcribe("meeting-recording.wav");
209
209
  ```
210
210
 
211
+ ### 💾 Persistence Layer
212
+
213
+ Automatically track chat history, tool executions, and API metrics with **@node-llm/orm**.
214
+
215
+ ```ts
216
+ import { createChat } from "@node-llm/orm/prisma";
217
+
218
+ // Chat state is automatically saved to your database (Postgres/MySQL/SQLite)
219
+ const chat = await createChat(prisma, llm, { model: "gpt-4o" });
220
+
221
+ await chat.ask("Hello");
222
+ // -> Saves User Message
223
+ // -> Saves Assistant Response
224
+ // -> Tracks Token Usage & Cost
225
+ // -> Logs Tool Calls & Results
226
+ ```
227
+
211
228
  ### ⚡ Scoped Parallelism
212
229
 
213
230
  Run multiple providers in parallel safely without global configuration side effects using isolated contexts.
package/dist/aliases.d.ts CHANGED
@@ -375,6 +375,10 @@ declare const _default: {
375
375
  readonly openai: "gpt-5.2-chat-latest";
376
376
  readonly openrouter: "openai/gpt-5.2-chat-latest";
377
377
  };
378
+ readonly "gpt-5.2-codex": {
379
+ readonly openai: "gpt-5.2-codex";
380
+ readonly openrouter: "openai/gpt-5.2-codex";
381
+ };
378
382
  readonly "gpt-5.2-pro": {
379
383
  readonly openai: "gpt-5.2-pro";
380
384
  readonly openrouter: "openai/gpt-5.2-pro";
@@ -1 +1 @@
1
- {"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../src/aliases.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA+mBW"}
1
+ {"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../src/aliases.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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