|
|
@@ -2,7 +2,6 @@ import { Anthropic } from "@anthropic-ai/sdk"
|
|
|
import * as vscode from "vscode"
|
|
|
|
|
|
import { SingleCompletionHandler } from "../"
|
|
|
-import { calculateApiCostAnthropic } from "../../utils/cost"
|
|
|
import { ApiStream } from "../transform/stream"
|
|
|
import { convertToVsCodeLmMessages } from "../transform/vscode-lm-format"
|
|
|
import { SELECTOR_SEPARATOR, stringifyVsCodeLmModelSelector } from "../../shared/vsCodeSelectorUtils"
|
|
|
@@ -443,8 +442,7 @@ export class VsCodeLmHandler extends BaseProvider implements SingleCompletionHan
|
|
|
yield {
|
|
|
type: "usage",
|
|
|
inputTokens: totalInputTokens,
|
|
|
- outputTokens: totalOutputTokens,
|
|
|
- totalCost: calculateApiCostAnthropic(this.getModel().info, totalInputTokens, totalOutputTokens),
|
|
|
+ outputTokens: totalOutputTokens
|
|
|
}
|
|
|
} catch (error: unknown) {
|
|
|
this.ensureCleanState()
|