fix(tests): stabilize issue #868 model refresh regression
This commit is contained in:
parent
2124b1dbbd
commit
772bb15ed9
2 changed files with 3 additions and 2 deletions
|
|
@ -5428,7 +5428,8 @@ mod tests {
|
||||||
|
|
||||||
let config = Config {
|
let config = Config {
|
||||||
workspace_dir: tmp.path().to_path_buf(),
|
workspace_dir: tmp.path().to_path_buf(),
|
||||||
default_provider: Some("venice".to_string()),
|
// Use a non-provider channel key to keep this test deterministic and offline.
|
||||||
|
default_provider: Some("imessage".to_string()),
|
||||||
..Config::default()
|
..Config::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2166,7 +2166,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn strip_think_tags_removes_multiple_blocks() {
|
fn strip_think_tags_removes_multiple_blocks_with_surrounding_text() {
|
||||||
let input = "Answer A <think>hidden 1</think> and B <think>hidden 2</think> done";
|
let input = "Answer A <think>hidden 1</think> and B <think>hidden 2</think> done";
|
||||||
let output = strip_think_tags(input);
|
let output = strip_think_tags(input);
|
||||||
assert_eq!(output, "Answer A and B done");
|
assert_eq!(output, "Answer A and B done");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue