Skip to content

Commit 6d3124b

Browse files
committed
feat: add grok-2 model
1 parent 61399ce commit 6d3124b

File tree

5 files changed

+47
-1
lines changed

5 files changed

+47
-1
lines changed

docs/changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ Consider giving a star ⭐ on [Github](https://github.com/pnd280/complexity).
1010

1111
**EXPERIMENTAL** features are subjected to change/removal without prior notice.
1212

13+
## v0.0.5.2
14+
15+
_Release date: 29th Oct, 2024_
16+
17+
- Added Grok-2 model.
18+
1319
## v0.0.5.1
1420

1521
_Release date: 26th Oct, 2024_

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "complexity",
33
"displayName": "Complexity - Perplexity AI Supercharged",
4-
"version": "0.0.5.1",
4+
"version": "0.0.5.2",
55
"author": "pnd280",
66
"description": "⚡ Supercharge your Perplexity AI",
77
"type": "module",

src/content-script/components/QueryBox/consts.ts

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ export const languageModels = [
3232
code: "gpt4",
3333
provider: "OpenAI",
3434
},
35+
{
36+
label: "Grok-2",
37+
shortLabel: "Grok-2",
38+
code: "grok",
39+
provider: "xAI",
40+
},
3541
{
3642
label: "Sonar Huge",
3743
shortLabel: "Sonar XL",

src/content-script/components/QueryBox/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import BlackForestLabs from "@/shared/components/icons/BlackForestLabsIcon";
2323
import MistralAiIcon from "@/shared/components/icons/MistralAiIcon";
2424
import PlaygroundAiIcon from "@/shared/components/icons/PlaygroundAiIcon";
2525
import StabilityAiIcon from "@/shared/components/icons/StabilityAiIcon";
26+
import XAiIcon from "@/shared/components/icons/xAi";
2627

2728
export type LanguageModel = (typeof languageModels)[number];
2829
type Provider = (typeof languageModels)[number]["provider"];
@@ -38,6 +39,7 @@ export const languageModelIcons: Record<LanguageModel["code"], ReactNode> = {
3839
o1: <AiOutlineOpenAI />,
3940
gpt4o: <AiOutlineOpenAI />,
4041
gpt4: <AiOutlineOpenAI />,
42+
grok: <XAiIcon />,
4143
llama_x_large: <SiPerplexity />,
4244
experimental: <SiPerplexity />,
4345
turbo: <SiPerplexity />,

src/shared/components/icons/xAi.tsx

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { SVGProps } from "react";
2+
3+
export default function XAiIcon({ ...props }: SVGProps<SVGSVGElement>) {
4+
return (
5+
<svg
6+
xmlns="http://www.w3.org/2000/svg"
7+
width="0.8em"
8+
height="0.8em"
9+
viewBox="0 0 1000 1000"
10+
{...props}
11+
>
12+
<g>
13+
<polygon
14+
fill="currentColor"
15+
points="226.83 411.15 501.31 803.15 623.31 803.15 348.82 411.15 226.83 411.15"
16+
/>
17+
<polygon
18+
fill="currentColor"
19+
points="348.72 628.87 226.69 803.15 348.77 803.15 409.76 716.05 348.72 628.87"
20+
/>
21+
<polygon
22+
fill="currentColor"
23+
points="651.23 196.85 440.28 498.12 501.32 585.29 773.31 196.85 651.23 196.85"
24+
/>
25+
<polygon
26+
fill="currentColor"
27+
points="673.31 383.25 673.31 803.15 773.31 803.15 773.31 240.44 673.31 383.25"
28+
/>
29+
</g>
30+
</svg>
31+
);
32+
}

0 commit comments

Comments
 (0)