Skip to content

Extension does not work correctly with "thinking" models #66

@antispam2002

Description

@antispam2002

If using e.g. Ollama with locally running Gemma4, the response from the LLM is quite often stripped in the middle.

Reason: the hard-coded max_token limit is too low. This kind of LLMs produces "thinking" tokens, which, being counted together with response tokens, exhaust the tokens' limit causing the generation to stop with "length" as the stop reason.

Suggested solution: make max_tokens configurable so that user can set the limit higher if this occurs. See also #65

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions