Skip to content
TheChatArchiveThe Chat Archive
MiniMaxminimax-m1· MiniMaxHugging Face LMArena Human Preference 140K

PS D:\project> & D:/project/venv/Scripts/python.exe "d:/time pass/# jarvisassistant.py"…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-235b-a22b’s answer.
  1. User

    PS D:\project> & D:/project/venv/Scripts/python.exe "d:/time pass/# jarvis_assistant.py" File "d:\time pass# jarvis_assistant.py", line 77 subprocess.run(["xdg-open", f"https://google.com/search?q={query.replace(' ', '+'))"]})

  2. MiniMax Assistant

    The error is due to a syntax issue in the f-string formatting. Here's the corrected line:

    subprocess.run(["xdg-open", f"https://google.com/search?q={query.replace(' ', '+')}"], shell=True)
    

    Key fixes:

    1. Added missing closing quote " after the URL
    2. Added shell=True for Windows compatibility
    3. Consider using webbrowser module for better cross-platform support:
    import webbrowser
    
    # Replace the web_search method with:
    def web_search(self, query):
        self.speak(f"Searching for {query}")
        url = f"https://www.google.com/search?q={query.replace(' ', '+')}"
        webbrowser.open(url)
    

    Additional recommendations:

    1. For Windows users, replace "xdg-open" with:
    subprocess.run(f'start "" "{url}"', shell=True)
    
    1. Consider using pyautogui.hotkey('win', 'r') for Windows Run dialog
    2. Add proper error handling for different OS platforms

    Would you like me to provide a complete cross-platform version of the web search function?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.