To Reproduce
-
Configure integration_openai with an Ollama OpenAI-compatible endpoint: http://<ollama-host>:11434/v1
-
Use:
- Nextcloud 33.0.7
- integration_openai 4.5.2
- context_agent 2.8.0
- Ollama 0.32.7
- Model
qwen3.5-32k:latest
Note: qwen3.5-32k:latest is a local Ollama model tag based on qwen3.5:latest, created with PARAMETER num_ctx 32768. No other model changes were made.
-
Configure max_tokens=3000 and use_max_completion_tokens_param=1.
-
Run a multi-step Context Agent request, for example: How is the current weather in Dresden?
-
Observe that the coordinate lookup and weather lookup complete successfully, but the final assistant response is empty.
-
The resulting TaskProcessing task ends with STATUS_SUCCESSFUL and output: "".
-
Replay the same final /v1/chat/completions request directly against Ollama with the same message history and identical tool results.
-
With max_completion_tokens=3000, the response is:
finish_reason="stop"
content=""
tool_calls=null
-
Change only the token parameter to max_tokens=3000.
-
The same request now returns:
finish_reason="stop"
- normal final assistant content
tool_calls=null
-
In Nextcloud, configure:
llm_extra_params={"reasoning_effort":"none"}
use_max_completion_tokens_param=0
max_tokens=3000
-
Repeat the same Context Agent request.
-
The complete flow now succeeds: coordinate tool → weather tool → final answer synthesis → visible answer in the Nextcloud UI.
To Reproduce
Configure
integration_openaiwith an Ollama OpenAI-compatible endpoint:http://<ollama-host>:11434/v1Use:
qwen3.5-32k:latestNote:
qwen3.5-32k:latestis a local Ollama model tag based onqwen3.5:latest, created withPARAMETER num_ctx 32768. No other model changes were made.Configure
max_tokens=3000anduse_max_completion_tokens_param=1.Run a multi-step Context Agent request, for example:
How is the current weather in Dresden?Observe that the coordinate lookup and weather lookup complete successfully, but the final assistant response is empty.
The resulting TaskProcessing task ends with
STATUS_SUCCESSFULandoutput: "".Replay the same final
/v1/chat/completionsrequest directly against Ollama with the same message history and identical tool results.With
max_completion_tokens=3000, the response is:finish_reason="stop"content=""tool_calls=nullChange only the token parameter to
max_tokens=3000.The same request now returns:
finish_reason="stop"tool_calls=nullIn Nextcloud, configure:
llm_extra_params={"reasoning_effort":"none"}use_max_completion_tokens_param=0max_tokens=3000Repeat the same Context Agent request.
The complete flow now succeeds: coordinate tool → weather tool → final answer synthesis → visible answer in the Nextcloud UI.