mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:20:43 +00:00
fix(agents): normalize cli transcript api field
This commit is contained in:
@@ -206,7 +206,7 @@ export async function persistCliTurnTranscript(params: {
|
||||
threadId: params.threadId,
|
||||
sessionCwd: params.sessionCwd,
|
||||
assistant: {
|
||||
api: provider,
|
||||
api: "cli",
|
||||
provider,
|
||||
model,
|
||||
usage: params.result.meta.agentMeta?.usage,
|
||||
|
||||
@@ -200,6 +200,7 @@ describe("agentCommand CLI provider handling", () => {
|
||||
});
|
||||
expect(messages[1]).toMatchObject({
|
||||
role: "assistant",
|
||||
api: "cli",
|
||||
provider: "google-gemini-cli",
|
||||
model: "gemini-3.1-pro-preview",
|
||||
content: [{ type: "text", text: "hello from cli" }],
|
||||
|
||||
Reference in New Issue
Block a user