mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-28 02:42:15 +08:00
feat(cli): show routed step models
This commit is contained in:
@@ -499,7 +499,12 @@ describe("session.llm.ai-sdk adapter", () => {
|
||||
expect(events).toHaveLength(1)
|
||||
const stepFinish = events[0]
|
||||
if (stepFinish.type !== "step-finish") throw new Error("expected step-finish")
|
||||
expect(stepFinish.providerMetadata).toEqual({ anthropic: { cacheCreationInputTokens: 300 } })
|
||||
// kilocode_change start
|
||||
expect(stepFinish.providerMetadata).toEqual({
|
||||
anthropic: { cacheCreationInputTokens: 300 },
|
||||
kilocode: { routedModelID: "claude-3-5-sonnet" },
|
||||
})
|
||||
// kilocode_change end
|
||||
expect(stepFinish.usage?.cacheWriteInputTokens).toBeUndefined()
|
||||
expect(stepFinish.usage?.cacheReadInputTokens).toBe(200)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user