chore: upgrade Node.js runtime to v24 across codebase #419
@@ -80,7 +80,10 @@ export function getModelCost(modelName: string): ModelCost {
|
||||
|
||||
for (const prefix of SORTED_PREFIXES) {
|
||||
if (normalized.startsWith(prefix)) {
|
||||
return MODEL_COSTS[prefix];
|
||||
const cost = MODEL_COSTS[prefix];
|
||||
if (cost !== undefined) {
|
||||
return cost;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export interface LlmCompletionParams {
|
||||
* Optional calling context hint for task type inference.
|
||||
* Examples: "brain", "chat", "embed", "planning", "code-review"
|
||||
*/
|
||||
callingContext?: string;
|
||||
callingContext?: string | undefined;
|
||||
/** Whether the call succeeded or failed */
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user