Skip to content

How to disable extended thinking on some adapter models? #1747

Closed Answered by ests
ests asked this question in Q&A
Discussion options

You must be logged in to vote

The bug seems to be resolved. In addition, it looks like extended thinking/reasoning (for anthropic specificly) can be disabled this way:

    adapters = {
      anthropic = function()
        return require('codecompanion.adapters').extend('anthropic', {
          schema = {
            extended_thinking = {
              default = false,
            },
          },
        })
      end,
}

But, I haven't found any way that would make this setting easily togglable, and most generic AI clients seem to offer that.

I think it would be really great to have slash command or variable that would turn that on (and it should be off by default).

What is the meaning of live, universe and all that thi…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ests
Comment options

Answer selected by ests
@olimorris
Comment options

@ests
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants