Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ function toDshMessage(
if (message.role === "user") {
return createUserMessage({
content,
source: { kind: "plugin", plugin: HOST_LLM_MESSAGE_SOURCE },
source: { kind: `plugin:${HOST_LLM_MESSAGE_SOURCE}` },
});
}
return createAssistantMessage({
Expand Down
3 changes: 1 addition & 2 deletions apps/memos-local-plugin/adapters/deepseek-harness/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@ export async function apply(
createRecallMessage: (text) => createUserMessage({
content: [{ type: "text", text }],
source: {
kind: "plugin",
plugin: DEEPSEEK_HARNESS_PLUGIN,
kind: `plugin:${DEEPSEEK_HARNESS_PLUGIN}`,
form: "recall",
},
}) as unknown as DshUserMessageLike,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ function recallMessage(text: string): DshUserMessageLike {
role: "user",
content: [{ type: "text", text }],
source: {
kind: "plugin",
plugin: "memos-local-memory",
kind: "plugin:memos-local-memory",
form: "recall",
},
};
Expand Down Expand Up @@ -539,8 +538,7 @@ describe("DeepSeek Harness bridge", () => {
expect(first.messages[1]).toMatchObject({
role: "user",
source: {
kind: "plugin",
plugin: "memos-local-memory",
kind: "plugin:memos-local-memory",
form: "recall",
},
content: [{
Expand All @@ -553,7 +551,7 @@ describe("DeepSeek Harness bridge", () => {
expect(followUp).toMatchObject({
kind: "enter",
messages: [followUpPrompt, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});
});
Expand Down Expand Up @@ -590,7 +588,7 @@ describe("DeepSeek Harness bridge", () => {
expect(result).toMatchObject({
kind: "enter",
messages: [prompt, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});
expect(core.searchMemory).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -637,7 +635,7 @@ describe("DeepSeek Harness bridge", () => {
expect(result).toMatchObject({
kind: "enter",
messages: [prompt, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});
});
Expand Down Expand Up @@ -682,7 +680,7 @@ describe("DeepSeek Harness bridge", () => {
expect(result).toMatchObject({
kind: "enter",
messages: [prompt, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});
expect(core.searchMemory).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -836,7 +834,7 @@ describe("DeepSeek Harness bridge", () => {
expect(result).toMatchObject({
kind: "enter",
messages: [retry, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});

Expand Down Expand Up @@ -959,7 +957,7 @@ describe("DeepSeek Harness bridge", () => {
await expect(nextStep).resolves.toMatchObject({
kind: "enter",
messages: [secondPrompt, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});
expect(core.searchMemory).toHaveBeenCalledTimes(2);
Expand Down Expand Up @@ -1037,7 +1035,7 @@ describe("DeepSeek Harness bridge", () => {
await expect(nextStep).resolves.toMatchObject({
kind: "enter",
messages: [secondPrompt, expect.objectContaining({
source: expect.objectContaining({ plugin: "memos-local-memory" }),
source: expect.objectContaining({ kind: "plugin:memos-local-memory" }),
})],
});
expect(core.searchMemory).toHaveBeenCalledTimes(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ describe("DeepSeek Harness host LLM bridge", () => {
{
role: "user",
content: [{ type: "text", text: "Question" }],
source: { kind: "plugin", plugin: "memos-local-memory" },
source: { kind: "plugin:memos-local-memory" },
},
{
role: "assistant",
Expand Down
Loading