-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat: add Mistral AI cost table and vendor integration #357
feat: add Mistral AI cost table and vendor integration #357
Conversation
lib/constants.ts
Outdated
@@ -338,6 +381,10 @@ export const LLM_VENDOR_APIS = [ | |||
value: "PERPLEXITY_API_KEY", | |||
label: "Perplexity", | |||
}, | |||
{ |
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.
not needed
@@ -367,6 +367,22 @@ export function VendorLogo({ | |||
); | |||
} | |||
|
|||
if (vendor.includes("mistral")) { |
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.
this is already handled in this file
lib/utils.ts
Outdated
@@ -527,7 +528,7 @@ export function calculatePriceFromUsage( | |||
} else if (model.includes("claude")) { | |||
vendor = "anthropic"; | |||
} else if (model.includes("mistral")) { |
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.
update this to "tral"
Added support for MistralAI models in the cost tables and vendor integration.
Changes:
Link to Devin run: https://preview.devin.ai/devin/51b867e7a84b4886810d5ef05f931776
If you have any feedback, you can leave comments in the PR and I'll address them in the app!