Skip to content

Commit fa9a9fc

Browse files
committed
Generalize URL matching and enable URL override support for Mistral and GitHub Copilot
1 parent 9cd2edd commit fa9a9fc

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const is_claude = current_url.startsWith(claude_url)
6060
const deepseek_url = 'https://chat.deepseek.com/'
6161
const is_deepseek = current_url.startsWith(deepseek_url)
6262

63-
const mistral_url = 'https://chat.mistral.ai/chat'
63+
const mistral_url = 'https://chat.mistral.ai/'
6464
const is_mistral = current_url.startsWith(mistral_url)
6565

6666
const qwen_url = 'https://chat.qwen.ai/'

‎packages/browser/src/manifest.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"https://www.doubao.com/chat/",
3333
"https://gemini.google.com/app",
3434
"https://gemini.google.com/u/*/app",
35-
"https://github.com/copilot",
35+
"https://github.com/copilot/*",
3636
"https://grok.com/",
3737
"https://huggingface.co/chat/",
3838
"https://lmarena.ai/",
3939
"https://www.kimi.com/",
4040
"https://agent.minimax.io/",
41-
"https://chat.mistral.ai/chat",
41+
"https://chat.mistral.ai/*",
4242
"http://openwebui/",
4343
"https://openrouter.ai/chat*",
4444
"https://www.perplexity.ai/*",

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ export const CHATBOTS = {
108108
} as Chatbot,
109109
'GitHub Copilot': {
110110
url: 'https://github.com/copilot',
111+
supports_url_override: true,
112+
url_override_label: 'Space URL',
111113
models: {
112114
'gpt-5-mini': { label: 'GPT-5 mini' },
113115
'grok-code-fast-1': { label: 'Grok Code Fast 1' },
@@ -147,6 +149,8 @@ export const CHATBOTS = {
147149
} as Chatbot,
148150
Mistral: {
149151
url: 'https://chat.mistral.ai/chat',
152+
supports_url_override: true,
153+
url_override_label: 'Project URL',
150154
supported_options: {
151155
incognito: 'Incognito mode',
152156
think: 'Think'

0 commit comments

Comments
 (0)