mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
Auto-reply: add /models directive regression test
This commit is contained in:
committed by
Peter Steinberger
parent
9520b6d970
commit
4ab568cede
@@ -17,6 +17,12 @@ describe("extractModelDirective", () => {
|
||||
expect(result.cleaned).toBe("/models gpt-5");
|
||||
});
|
||||
|
||||
it("does not strip /models when embedded in text", () => {
|
||||
const result = extractModelDirective("please show /models openai");
|
||||
expect(result.hasDirective).toBe(false);
|
||||
expect(result.cleaned).toBe("please show /models openai");
|
||||
});
|
||||
|
||||
it("extracts /model with provider/model format", () => {
|
||||
const result = extractModelDirective("/model anthropic/claude-opus-4-5");
|
||||
expect(result.hasDirective).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user