Classic Monks AI integration

Hi,

I’m discovering the Ai integration in CM 1.2 and have a few questions.
I connected a Claude Sonnet 4.6 API key and enabled Ai Features + Ai Agent.
No Vision / Image Provider is added.

  1. When working in the chat, i can add an image (screenshot to expose info) via an ‘Upload’ button close to the prompt field but it’s not uploaded to the chat, why is that?
  2. I asked Claude to create a simple PHP shortcode and add it to a CM snippet field that was opened in the same window. It wasn’t possible because “No Abilities Available”, i had to copy-paste the shortcode manually, is that the expected behaviour in CM?
  3. For a simple short text chat, Claude spent 13K input and 2K output tokens which seems huge. Is there a way to limit the expense without sacrifying quality?

Thanks for your help.

A few exchanges later in Claude chat: 46K input / 3.3K output

In my Claude Console, caching seems disabled:

You are not using prompt caching.

Add a cache_control block to your requests to reuse expensive context. Most organizations see a 50–90% reduction in entry costs.

Would it help saving tokens?
Is it to enable at the CM plugin’s level or in Claude account?
How to proceed?

[EDIT] Claude answer:

Where do you enable it? In the Classic Monks plugin settings, not in the Anthropic Console. The Console only informs you that you’re not using it—the application (the plugin) must add the cache_control blocks to its API requests.

→ Look for a “Prompt Caching” option in the Classic Monks settings or open a support ticket to ask if it’s implemented.

Hey @avanti really appreciate you sharing this, especially catching that prompt caching wasn’t active. That one detail is a huge help.

We’re already working on implementing it. The cache_control blocks need to be set on our end in the API requests, not through the Console so that’s on us to fix. Once it’s in, you should see a solid drop in those input token counts, especially after the first message or two in a conversation.

Will keep you posted when the update is out. Thanks again for digging into this!

1 Like

Hi @avanti,

We have addressed this bug in the latest release, please check v1.2.1 Changelog and update Classic Monks to the latest version.

Also, Vision / Image Provider can be added separately in Ai Tab > General > Vision / Image Provider.

Hi @joy,

Thank you for the update, will check all this later. :slightly_smiling_face:

Hi,

I get this error in CM 1.2.1, Classic AI chat, using Anthropic API key:

Sorry, something went wrong: AI API error: 500 - API Error (400): tools.0.custom.input_schema.type: Input should be 'object'

[EDIT] The Anthropic key was misformed in the DB, starting by sk-ant-sk-ant-api03-eH3JZ… (duplicate prefix)

I still get an error after fixing the API key issue:

Sorry, something went wrong: AI API error: 500 - API Error (400): tools.6.custom.input_schema: Input does not match the expected shape.