@probelabs/probe-chat 0.6.0-rc284 → 0.6.0-rc286

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -412,7 +412,7 @@ export function main() {
412
412
  }
413
413
 
414
414
  logInfo('Sending message...'); // Log only if debug
415
- const result = await chat.chat(message, chat.getSessionId(), null, imageUrls); // Use the chat's current session ID and pass images
415
+ const result = await chat.chat(message, { images: imageUrls });
416
416
 
417
417
  if (result && typeof result === 'object' && result.response !== undefined) {
418
418
  if (options.json) {
@@ -576,7 +576,7 @@ export function main() {
576
576
 
577
577
  const spinner = ora('Thinking...').start(); // Spinner is ok for interactive mode
578
578
  try {
579
- const result = await chat.chat(message, null, null, imageUrls); // Uses internal session ID and pass images
579
+ const result = await chat.chat(message, { images: imageUrls });
580
580
  spinner.stop();
581
581
 
582
582
  logInfo(chalk.green('Assistant:'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/probe-chat",
3
- "version": "0.6.0-rc284",
3
+ "version": "0.6.0-rc286",
4
4
  "description": "CLI and web interface for Probe code search (formerly @probelabs/probe-web and @probelabs/probe-chat)",
5
5
  "main": "index.js",
6
6
  "type": "module",