-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add model pricing #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
paoloricciuti
left a comment
There was a problem hiding this 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
| interface PricingValidationResult { | ||
| enabled: boolean; | ||
| lookups: Map<string, ModelPricingLookup | null>; | ||
| } | ||
|
|
||
| interface SelectOptionsResult { | ||
| models: string[]; | ||
| mcp: string | undefined; | ||
| testingTool: boolean; | ||
| pricing: PricingValidationResult; | ||
| } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
Example:
TODO