mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 01:01:23 +00:00
test: tighten mistral media and onboarding coverage
This commit is contained in:
@@ -5,7 +5,9 @@ import { resolveMemorySearchConfig } from "./memory-search.js";
|
||||
const asConfig = (cfg: OpenClawConfig): OpenClawConfig => cfg;
|
||||
|
||||
describe("memory search config", () => {
|
||||
function configWithDefaultProvider(provider: "openai" | "local" | "gemini"): OpenClawConfig {
|
||||
function configWithDefaultProvider(
|
||||
provider: "openai" | "local" | "gemini" | "mistral",
|
||||
): OpenClawConfig {
|
||||
return asConfig({
|
||||
agents: {
|
||||
defaults: {
|
||||
@@ -147,6 +149,13 @@ describe("memory search config", () => {
|
||||
expectDefaultRemoteBatch(resolved);
|
||||
});
|
||||
|
||||
it("includes remote defaults and model default for mistral without overrides", () => {
|
||||
const cfg = configWithDefaultProvider("mistral");
|
||||
const resolved = resolveMemorySearchConfig(cfg, "main");
|
||||
expectDefaultRemoteBatch(resolved);
|
||||
expect(resolved?.model).toBe("mistral-embed");
|
||||
});
|
||||
|
||||
it("defaults session delta thresholds", () => {
|
||||
const cfg = asConfig({
|
||||
agents: {
|
||||
|
||||
Reference in New Issue
Block a user