Skip to content

Instantly share code, notes, and snippets.

@danthedaniel
Last active March 8, 2026 07:53
Show Gist options
  • Select an option

  • Save danthedaniel/c1542c65469fb1caafabe1371e8ed445 to your computer and use it in GitHub Desktop.

Select an option

Save danthedaniel/c1542c65469fb1caafabe1371e8ed445 to your computer and use it in GitHub Desktop.
How I got Qwen3.5 35B A3B to run with Oh My Pi

This is how I got unsloth/qwen3.5-35b-a3b to work with Oh My Pi.

  1. You need to patch the openai-completions.ts file in the Pi source code to handle Qwen's <think> blocks.

  2. You need to create a file at ~/.omp/agent/models.yml to configure the thinking levels for the model.

providers:
lm-studio:
auth: none
modelOverrides:
"unsloth/qwen3.5-35b-a3b":
reasoning: true
thinking:
minLevel: minimal
maxLevel: high
mode: effort
--- a/pi-ai/src/providers/openai-completions.ts
+++ b/pi-ai/src/providers/openai-completions.ts
@@ -242,7 +242,7 @@
};
- const parseMiniMaxThinkTags = model.provider === "minimax-code" || model.provider === "minimax-code-cn";
+ const parseMiniMaxThinkTags = model.provider === "minimax-code" || model.provider === "minimax-code-cn" || model.provider === "lm-studio";
let taggedTextBuffer = "";
let insideTaggedThinking = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment