feat: Add Mistral provider support

feat: Update manifest version to 1.4.1
This commit is contained in:
n4ze3m 2025-01-04 20:16:23 +05:30
parent efb49d8e34
commit 1d9d704c76
4 changed files with 41 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import { TogtherMonoIcon } from "../Icons/Togther"
import { OpenRouterIcon } from "../Icons/OpenRouter" import { OpenRouterIcon } from "../Icons/OpenRouter"
import { LLamaFile } from "../Icons/Llamafile" import { LLamaFile } from "../Icons/Llamafile"
import { GeminiIcon } from "../Icons/GeminiIcon" import { GeminiIcon } from "../Icons/GeminiIcon"
import { MistarlIcon } from "../Icons/Mistral"
export const ProviderIcons = ({ export const ProviderIcons = ({
provider, provider,
@ -37,6 +38,8 @@ export const ProviderIcons = ({
return <LLamaFile className={className} /> return <LLamaFile className={className} />
case "gemini": case "gemini":
return <GeminiIcon className={className} /> return <GeminiIcon className={className} />
case "mistral":
return <MistarlIcon className={className} />
default: default:
return <OllamaIcon className={className} /> return <OllamaIcon className={className} />
} }

View File

@ -0,0 +1,32 @@
import React from "react"
export const MistarlIcon = React.forwardRef<
SVGSVGElement,
React.SVGProps<SVGSVGElement>
>((props, ref) => {
return (
<svg
{...props}
fill="currentColor"
fillRule="evenodd"
ref={ref}
style={{ flex: "none", lineHeight: 1, ...props.style }}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg">
<g fill="none" fillRule="nonzero">
<path
d="M15 6v4h-2V6h2zm4-4v4h-2V2h2zM3 2H1h2zM1 2h2v20H1V2zm8 12h2v4H9v-4zm8 0h2v8h-2v-8z"
fill="#000"
/>
<path d="M19 2h4v4h-4V2zM3 2h4v4H3V2z" fill="#F7D046" />
<path d="M15 10V6h8v4h-8zM3 10V6h8v4H3z" fill="#F2A73B" />
<path d="M3 14v-4h20v4z" fill="#EE792F" />
<path
d="M11 14h4v4h-4v-4zm8 0h4v4h-4v-4zM3 14h4v4H3v-4z"
fill="#EB5829"
/>
<path d="M19 18h4v4h-4v-4zM3 18h4v4H3v-4z" fill="#EA3326" />
</g>
</svg>
)
})

View File

@ -48,5 +48,10 @@ export const OAI_API_PROVIDERS = [
label: "Google AI", label: "Google AI",
value: "gemini", value: "gemini",
baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai" baseUrl: "https://generativelanguage.googleapis.com/v1beta/openai"
},
{
label: "Mistral",
value: "mistral",
baseUrl: "https://api.mistral.ai/v1"
} }
] ]

View File

@ -51,7 +51,7 @@ export default defineConfig({
outDir: "build", outDir: "build",
manifest: { manifest: {
version: "1.4.0", version: "1.4.1",
name: name:
process.env.TARGET === "firefox" process.env.TARGET === "firefox"
? "Page Assist - A Web UI for Local AI Models" ? "Page Assist - A Web UI for Local AI Models"