Class NaruModelProtocolOllamaNative

java.lang.Object
net.thevpc.naru.ext.models.NaruModelProtocolBase
net.thevpc.naru.ext.models.ollama.NaruModelProtocolOllamaNative
All Implemented Interfaces:
NaruModelProtocol

public class NaruModelProtocolOllamaNative extends NaruModelProtocolBase
  • Field Details

    • THINK_ENV

      public static final String THINK_ENV
      Request env key carrying the think flag sent to Ollama.

      Reading the request's think field is the only way to get reasoning out of a reasoning model: Ollama returns no message.thinking at all unless the request asks for it. Sending it unasked, on the other hand, is worse than useless -- Ollama rejects a model that does not support thinking, so a default of true would break every non-reasoning model.

      See Also:
  • Constructor Details

  • Method Details