feat: M10-Telemetry — Mosaic Telemetry integration #407

Merged
jason.woltje merged 14 commits from feature/m10-telemetry into develop 2026-02-15 17:32:08 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 306c2e5bd8 - Show all commits

View File

@@ -80,7 +80,10 @@ export function getModelCost(modelName: string): ModelCost {
for (const prefix of SORTED_PREFIXES) { for (const prefix of SORTED_PREFIXES) {
if (normalized.startsWith(prefix)) { if (normalized.startsWith(prefix)) {
return MODEL_COSTS[prefix]; const cost = MODEL_COSTS[prefix];
if (cost !== undefined) {
return cost;
}
} }
} }

View File

@@ -25,7 +25,7 @@ export interface LlmCompletionParams {
* Optional calling context hint for task type inference. * Optional calling context hint for task type inference.
* Examples: "brain", "chat", "embed", "planning", "code-review" * Examples: "brain", "chat", "embed", "planning", "code-review"
*/ */
callingContext?: string; callingContext?: string | undefined;
/** Whether the call succeeded or failed */ /** Whether the call succeeded or failed */
success: boolean; success: boolean;
} }