Skip to content

Conversation

@khromov
Copy link
Collaborator

@khromov khromov commented Dec 9, 2025

Example:

Screenshot 2025-12-09 at 21 27 26

TODO

  • Verify calculation logic
  • Verify cached tokens behavior and pricing (separate PR)

@khromov khromov marked this pull request as ready for review December 12, 2025 12:46
Copy link
Member

@paoloricciuti paoloricciuti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me, I think the pricing stuff might be simplified a bit (building the map beforehand seems a bit unnecessary but it's also fine)

index.ts Outdated
Comment on lines 52 to 62
interface PricingValidationResult {
enabled: boolean;
lookups: Map<string, ModelPricingLookup | null>;
}

interface SelectOptionsResult {
models: string[];
mcp: string | undefined;
testingTool: boolean;
pricing: PricingValidationResult;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is a me thing but I generally strongly prefer to infer types when possible? Do you feel strongly about defining return types?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check if we can remove some types so they can be inferred, thanks!

@khromov khromov merged commit 193223c into main Dec 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants