mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 21:30:21 +00:00
fix(ci): satisfy strict agent model types
This commit is contained in:
@@ -390,7 +390,7 @@ export const handleModelsCommand: CommandHandler = async (params, allowTextComma
|
||||
config: params.cfg,
|
||||
})
|
||||
: params.agentId;
|
||||
const modelsAgentDir = resolveAgentDir(params.cfg, modelsAgentId);
|
||||
const modelsAgentDir = modelsAgentId ? resolveAgentDir(params.cfg, modelsAgentId) : undefined;
|
||||
|
||||
const reply = await resolveModelsCommandReply({
|
||||
cfg: params.cfg,
|
||||
|
||||
@@ -208,7 +208,7 @@ describe("agents helpers", () => {
|
||||
agentId: "main",
|
||||
match: {
|
||||
channel: "discord",
|
||||
peer: { kind: "user", id: "a|b" },
|
||||
peer: { kind: "direct", id: "a|b" },
|
||||
accountId: "default",
|
||||
},
|
||||
},
|
||||
@@ -216,7 +216,7 @@ describe("agents helpers", () => {
|
||||
agentId: "main",
|
||||
match: {
|
||||
channel: "discord",
|
||||
peer: { kind: "user", id: "a" },
|
||||
peer: { kind: "direct", id: "a" },
|
||||
guildId: "b",
|
||||
accountId: "|default",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user