pplx-zero 2.4.0 → 2.4.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 +2 -1
- package/package.json +1 -1
- package/src/index.ts +3 -1
package/README.md
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://www.npmjs.com/package/pplx-zero"><img src="https://img.shields.io/npm/v/pplx-zero.svg?color=00d4ff" alt="npm"></a>
|
|
13
13
|
<a href="https://aur.archlinux.org/packages/pplx-zero"><img src="https://img.shields.io/aur/version/pplx-zero?color=00d4ff" alt="AUR"></a>
|
|
14
|
-
<img src="https://img.shields.io/
|
|
14
|
+
<img src="https://img.shields.io/npm/dw/pplx-zero?color=00d4ff&label=downloads" alt="npm downloads">
|
|
15
|
+
<img src="https://img.shields.io/badge/bun-runtime-fbf0df?logo=bun" alt="Bun">
|
|
15
16
|
<img src="https://img.shields.io/badge/license-MIT-blue" alt="License">
|
|
16
17
|
</p>
|
|
17
18
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -146,7 +146,9 @@ if (ragContext) {
|
|
|
146
146
|
if (values.continue) {
|
|
147
147
|
const last = await getLastEntry();
|
|
148
148
|
if (last) {
|
|
149
|
-
const
|
|
149
|
+
const userQuery = positionals.join(' ') || 'Continue and elaborate on the previous answer.';
|
|
150
|
+
const historyContext = `Previous question: "${last.q}"\nPrevious answer: "${last.a.slice(0, 500)}..."\n\nFollow-up question: ${userQuery}`;
|
|
151
|
+
const context = ragContext ? ragContext + historyContext : historyContext;
|
|
150
152
|
query = context;
|
|
151
153
|
if (!values.json) {
|
|
152
154
|
await write(fmt.continuing(last.q));
|