mirror of
https://github.com/qwai-tech/obsidian-plugin-intelligence-assistant.git
synced 2026-07-22 06:41:00 +00:00
A real-LLM agent run against a strict OpenAI gateway (Manifold) failed on the follow-up turn with `Unrecognized key: "model"`: the planner's working assistant messages carry internal fields (model, reasoning_content) that lenient servers (DeepSeek) ignore but strict ones reject. Add toOpenAiWireMessages() — keeps only spec fields (role, content, name, tool_calls, tool_call_id) and expands image attachments — and use it in all OpenAI-compatible providers (openai/custom, deepseek, openrouter, ollama). Stripping reasoning_content is also correct per DeepSeek's own guidance (must not be echoed back). Also add an env-gated real-LLM path to the mission harness (MISSION_LLM_*, defaults to the mock so deterministic/flake-soak runs are unaffected) and a skipped-by-default real-llm-mission test. Verified end-to-end: deepseek-v4-pro via Manifold reads a vault file through read_file and returns the sentinel. |
||
|---|---|---|
| .. | ||
| e2e | ||
| harness | ||
| missions | ||
| mutation | ||
| perf | ||