Skip to content

Commit df356b7

Browse files
committed
Rename LMArena to Arena across all configurations and update related files
1 parent bc833ba commit df356b7

9 files changed

Lines changed: 23 additions & 23 deletions

File tree

apps/browser/src/content-scripts/send-prompt-content-script/chatbots/lmarena.ts renamed to apps/browser/src/content-scripts/send-prompt-content-script/chatbots/arena.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from '../utils/add-apply-response-button'
66
import { report_initialization_error } from '../utils/report-initialization-error'
77

8-
export const lmarena: Chatbot = {
8+
export const arena: Chatbot = {
99
wait_until_ready: async () => {
1010
await new Promise((resolve) => {
1111
const check_for_element = () => {
@@ -24,7 +24,7 @@ export const lmarena: Chatbot = {
2424
) as HTMLTextAreaElement
2525
if (!input_element) {
2626
report_initialization_error({
27-
function_name: 'lmarena.enter_message',
27+
function_name: 'arena.enter_message',
2828
log_message: 'Message input textarea not found'
2929
})
3030
return
@@ -54,7 +54,7 @@ export const lmarena: Chatbot = {
5454
) as HTMLElement
5555
if (!copy_button) {
5656
report_initialization_error({
57-
function_name: 'lmarena.perform_copy',
57+
function_name: 'arena.perform_copy',
5858
log_message: 'Copy button not found'
5959
})
6060
return
@@ -66,7 +66,7 @@ export const lmarena: Chatbot = {
6666
}
6767

6868
observe_for_responses({
69-
chatbot_name: 'LMArena',
69+
chatbot_name: 'Arena',
7070
is_generating: () =>
7171
!!document.querySelector('canvas[data-sentry-component="Loading"]'),
7272
footer_selector:

‎apps/browser/src/content-scripts/send-prompt-content-script/chatbots/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export * from './gemini'
77
export * from './grok'
88
export * from './github-copilot'
99
export * from './hugging-chat'
10-
export * from './lmarena'
10+
export * from './arena'
1111
export * from './mistral'
1212
export * from './open-webui'
1313
export * from './openrouter'

‎apps/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
yuanbao,
1818
doubao,
1919
kimi,
20-
lmarena,
20+
arena,
2121
together,
2222
github_copilot,
2323
hugging_chat,
@@ -69,8 +69,8 @@ const is_yuanbao = current_url.startsWith(yuanbao_url)
6969
const hugging_chat_url = 'https://huggingface.co/chat/'
7070
const is_hugging_chat = current_url.startsWith(hugging_chat_url)
7171

72-
const lmarena_url = 'https://lmarena.ai/'
73-
const is_lmarena = current_url.startsWith(lmarena_url)
72+
const arena_url = 'https://arena.ai/'
73+
const is_arena = current_url.startsWith(arena_url)
7474

7575
const grok_url = 'https://grok.com/'
7676
const is_grok = current_url.startsWith(grok_url)
@@ -105,8 +105,8 @@ if (is_ai_studio) {
105105
chatbot = claude
106106
} else if (is_hugging_chat) {
107107
chatbot = hugging_chat
108-
} else if (is_lmarena) {
109-
chatbot = lmarena
108+
} else if (is_arena) {
109+
chatbot = arena
110110
} else if (is_mistral) {
111111
chatbot = mistral
112112
} else if (is_open_webui) {

‎apps/browser/src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"https://github.com/copilot/*",
3535
"https://grok.com/*",
3636
"https://huggingface.co/chat/",
37-
"https://lmarena.ai/",
37+
"https://arena.ai/",
3838
"https://www.kimi.com/",
3939
"https://chat.mistral.ai/*",
4040
"http://openwebui/",

‎apps/editor/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@
770770
},
771771
{
772772
"name": "(12)",
773-
"chatbot": "LMArena"
773+
"chatbot": "Arena"
774774
},
775775
{
776776
"name": "(13)",
@@ -939,7 +939,7 @@
939939
},
940940
{
941941
"name": "(12)",
942-
"chatbot": "LMArena"
942+
"chatbot": "Arena"
943943
},
944944
{
945945
"name": "(13)",
@@ -1108,7 +1108,7 @@
11081108
},
11091109
{
11101110
"name": "(12)",
1111-
"chatbot": "LMArena"
1111+
"chatbot": "Arena"
11121112
},
11131113
{
11141114
"name": "(13)",
@@ -1249,7 +1249,7 @@
12491249
},
12501250
{
12511251
"name": "(12)",
1252-
"chatbot": "LMArena"
1252+
"chatbot": "Arena"
12531253
},
12541254
{
12551255
"name": "(13)",
@@ -1390,7 +1390,7 @@
13901390
},
13911391
{
13921392
"name": "(12)",
1393-
"chatbot": "LMArena"
1393+
"chatbot": "Arena"
13941394
},
13951395
{
13961396
"name": "(13)",

‎packages/shared/src/constants/chatbots.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ export const CHATBOTS = {
147147
Kimi: {
148148
url: 'https://www.kimi.com/'
149149
} as Chatbot,
150-
LMArena: {
151-
url: 'https://lmarena.ai/'
150+
Arena: {
151+
url: 'https://arena.ai/'
152152
} as Chatbot,
153153
Mistral: {
154154
url: 'https://chat.mistral.ai/chat',

‎packages/ui/src/components/editor/common/Icon/Icon.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import AIStudio from '../../../../assets/icons/ai-studio.svg'
22
import AtSign from '../../../../assets/icons/at-sign.svg'
33
import BuyMeACoffeeLogo from '../../../../assets/icons/buy-me-a-coffee-logo.svg'
44
import BuyMeACoffeeText from '../../../../assets/icons/buy-me-a-coffee-text.svg'
5+
import Arena from '../../../../assets/icons/arena.svg'
56
import ChatGPT from '../../../../assets/icons/openai.svg'
67
import Claude from '../../../../assets/icons/claude.svg'
78
import CodeWebChatLogo from '../../../../assets/icons/code-web-chat-logo.svg'
@@ -17,7 +18,6 @@ import Grok from '../../../../assets/icons/grok.svg'
1718
import HashSign from '../../../../assets/icons/hash-sign.svg'
1819
import HuggingChat from '../../../../assets/icons/hugging-chat.svg'
1920
import Kimi from '../../../../assets/icons/kimi.svg'
20-
import LMArena from '../../../../assets/icons/lmarena.svg'
2121
import Mistral from '../../../../assets/icons/mistral.svg'
2222
import OpenRouter from '../../../../assets/icons/openrouter.svg'
2323
import OpenWebUI from '../../../../assets/icons/open-webui.svg'
@@ -49,7 +49,7 @@ export namespace Icon {
4949
| 'HASH_SIGN'
5050
| 'HUGGING_CHAT'
5151
| 'KIMI'
52-
| 'LMARENA'
52+
| 'ARENA'
5353
| 'MISTRAL'
5454
| 'OPENROUTER'
5555
| 'OPEN_WEBUI'
@@ -126,8 +126,8 @@ export const Icon: React.FC<Icon.Props> = ({ variant }) => {
126126
case 'KIMI':
127127
icon = <Kimi />
128128
break
129-
case 'LMARENA':
130-
icon = <LMArena />
129+
case 'ARENA':
130+
icon = <Arena />
131131
break
132132
case 'MISTRAL':
133133
icon = <Mistral />

‎packages/ui/src/components/editor/panel/Presets/Presets.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const chatbot_to_icon: Record<keyof typeof CHATBOTS, Icon.Variant> = {
2121
HuggingChat: 'HUGGING_CHAT',
2222
Kimi: 'KIMI',
2323
Mistral: 'MISTRAL',
24-
LMArena: 'LMARENA',
24+
Arena: 'ARENA',
2525
'Open WebUI': 'OPEN_WEBUI',
2626
OpenRouter: 'OPENROUTER',
2727
Qwen: 'QWEN',

0 commit comments

Comments
 (0)