Skip to content

Jinja exception with gpt-oss model #10805

@zaidka

Description

@zaidka

Question

When I have opencode using gpt-oss-120b model (locally hosted on llama.cpp), I occasionally get the following error:

While executing CallExpression at line 296, column 36 in source:
...g %}↵                {{- raise_exception("Cannot pass both content and thinking ...
                                           ^
Error: Jinja Exception: Cannot pass both content and thinking in an assistant message with tool calls! Put the analysis message in one or the other, but not both.

Not sure where to begin troubleshooting this to determine if it's an issue in opencode, llama.cpp, or the jinja template. Please help.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions