Skip to content
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

Merged
merged 6 commits into from
Nov 21, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 21, 2024

Added support for MistralAI models in the cost tables and vendor integration.

Changes:

  • Added MISTRAL_PRICING table with accurate pricing for all models
  • Updated SUPPORTED_VENDORS to include Mistral
  • Added VendorLogo component entry for Mistral

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!

lib/constants.ts Outdated
@@ -338,6 +381,10 @@ export const LLM_VENDOR_APIS = [
value: "PERPLEXITY_API_KEY",
label: "Perplexity",
},
{
Copy link
Contributor

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")) {
Copy link
Contributor

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 Show resolved Hide resolved
lib/utils.ts Outdated Show resolved Hide resolved
lib/utils.ts Outdated Show resolved Hide resolved
lib/utils.ts Outdated
@@ -527,7 +528,7 @@ export function calculatePriceFromUsage(
} else if (model.includes("claude")) {
vendor = "anthropic";
} else if (model.includes("mistral")) {
Copy link
Contributor

@karthikscale3 karthikscale3 Nov 21, 2024

Choose a reason for hiding this comment

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

update this to "tral"

@karthikscale3 karthikscale3 merged commit 613c9f2 into development Nov 21, 2024
@karthikscale3 karthikscale3 deleted the devin/1732215884-add-mistral-cost-table branch November 21, 2024 23:41
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.

1 participant