obsidian-textgenerator-plugin icon indicating copy to clipboard operation
obsidian-textgenerator-plugin copied to clipboard

Auto Suggest fails on Claude-3

Open PretzelVector opened this issue 10 months ago • 0 comments

Hello,

Thank you for your work on this plugin. Unfortunately, I am having some difficulties getting things functioning with Anthropic.

Steps to reproduce:

  1. Create a new vault
  2. Enable community plugins and install obsidian-text-generator
  3. Edit the settings as follows:
  • LLM Provider: Chat Anthropic
  • Anthropic API Key
  • Model: claude-3-haiku-20240307
  • Enable auto suggest
  1. Close settings
  2. Place cursor at the end of the Welcome note and hit double space

Expected Behaviour: After a brief pause, the auto-suggest options appear.

Actual Behaviour: Error message and no text generation.

Error: "stopSequence" parameter found in input and default params
    at ChatAnthropic2._generate (plugin:obsidian-textgenerator-plugin:99092:17)
    at eval (plugin:obsidian-textgenerator-plugin:22511:93)
    at Array.map (<anonymous>)
    at ChatAnthropic2._generateUncached (plugin:obsidian-textgenerator-plugin:22511:63)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async eval (plugin:obsidian-textgenerator-plugin:259505:29)

Thanks again, ~PV

PretzelVector avatar Apr 24 '24 21:04 PretzelVector