feat: Add support for Google AI (Gemini) as a custom model provider
This commit is contained in:
@@ -7,6 +7,7 @@ import { OpenAiIcon } from "../Icons/OpenAI"
|
||||
import { TogtherMonoIcon } from "../Icons/Togther"
|
||||
import { OpenRouterIcon } from "../Icons/OpenRouter"
|
||||
import { LLamaFile } from "../Icons/Llamafile"
|
||||
import { GeminiIcon } from "../Icons/GeminiIcon"
|
||||
|
||||
export const ProviderIcons = ({
|
||||
provider,
|
||||
@@ -34,6 +35,8 @@ export const ProviderIcons = ({
|
||||
return <OpenRouterIcon className={className} />
|
||||
case "llamafile":
|
||||
return <LLamaFile className={className} />
|
||||
case "gemini":
|
||||
return <GeminiIcon className={className} />
|
||||
default:
|
||||
return <OllamaIcon className={className} />
|
||||
}
|
||||
|
||||
18
src/components/Icons/GeminiIcon.tsx
Normal file
18
src/components/Icons/GeminiIcon.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react"
|
||||
|
||||
export const GeminiIcon = React.forwardRef<
|
||||
SVGSVGElement,
|
||||
React.SVGProps<SVGSVGElement>
|
||||
>((props, ref) => {
|
||||
return (
|
||||
<svg
|
||||
fill="currentColor"
|
||||
fillRule="evenodd"
|
||||
ref={ref}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...props}>
|
||||
<path d="M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12"></path>
|
||||
</svg>
|
||||
)
|
||||
})
|
||||
Reference in New Issue
Block a user