Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

kimi: fix missing KimiUsage import in stream.ts

Raine Virta8412f75c6a71
diff --git a/src/providers/kimi/translate/stream.ts b/src/providers/kimi/translate/stream.ts
index 692e87b..a6b9d74 100644
--- a/src/providers/kimi/translate/stream.ts
+++ b/src/providers/kimi/translate/stream.ts
@@ -1,6 +1,6 @@
import { encodeSseEvent } from "../../../sse.ts"
import type { Logger } from "../../../log.ts"
-import { mapUsageToAnthropic, reduceUpstream, UpstreamStreamError } from "./reducer.ts"
+import { mapUsageToAnthropic, reduceUpstream, UpstreamStreamError, type KimiUsage } from "./reducer.ts"
import { makeThinkingSignature } from "./signature.ts"
/**