magentic-ui icon indicating copy to clipboard operation
magentic-ui copied to clipboard

Magentic UI runs normally, but the browser cannot be operated

Open kinoxyz1 opened this issue 1 year ago • 4 comments

What steps did I take

I did the following steps on my MacBook pro (m1)

  1. first I downloaded the code: git clone https://github.com/microsoft/magentic-ui.git
  2. then created a virtual environment: conda create -n py312-magentic python=3.12 && conda activate py312-magentic
  3. installed dependencies: pip install magentic-ui[azure]
  4. running magentic: magentic ui --port 8081
  5. visit in your browser: localhost:8081
  6. I am using azure open ai, so I upload yaml in model configuration:
    model_config: &client
       provider: AzureOpenAIChatCompletionClient
       config:
         model: gpt-4o
         azure_endpoint: "https://xxxx.openai.azure.com"
         azure_deployment: "gpt-4o"
         api_version: "2024-02-15-preview"
         azure_ad_token_provider:
           provider: autogen_ext.auth.azure.AzureTokenProvider
           config:
             provider_kind: DefaultAzureCredential
             scopes:
               - https://cognitiveservices.azure.com/.default
         max_retries: 10
    
     orchestrator_client: *client
     coder_client: *client
     web_surfer_client: *client
     file_surfer_client: *client
     action_guard_client: *client
    
  7. ask a question: Please help me open youtube, but no reaction at all.

Image

Image

My question

I can't open YouTube. Is this a problem with Azure Open AI? Or is there something wrong with my operation? How can I solve this problem?

I hope there is an answer, thank you very much

kinoxyz1 avatar May 26 '25 08:05 kinoxyz1

I got same issue, turned out it doesn't respect your proxy settings, just need to turn off proxy from your main browser (or system) and the Magentic will be able to reach internet.

longkt90 avatar May 26 '25 10:05 longkt90

I got same issue, turned out it doesn't respect your proxy settings, just need to turn off proxy from your main browser (or system) and the Magentic will be able to reach internet.

Thank you for your reply. I tried again after canceling the browser proxy and local proxy, but still cannot access the Internet.

Image

kinoxyz1 avatar May 26 '25 11:05 kinoxyz1

I am also facing this issue

arjith avatar May 27 '25 15:05 arjith

@kinoxyz1 In a Mac environment, the browser will work normally if you set it as follows. Please note.

[ macOS Sequoia 15.5 ]

  1. conda create -n magentic-ui python=3.12 -y
  2. conda activate magentic-ui
  3. pip install "magentic-ui[azure]"
  4. vi config.yaml
# config.yaml
######################################
# Azure model configuration          #
######################################
model_config: &client
  provider: AzureOpenAIChatCompletionClient
  config:
    model: gpt-4.1
    azure_endpoint: <YOUR_END_POINT>
    azure_deployment: "gpt-4.1"
    api_version: "2025-01-01-preview"
    api_key: <YOUR_API_KEY>
    max_retries: 10

##########################
# Clients for each agent #
##########################
orchestrator_client: *client
coder_client: *client
web_surfer_client: *client
file_surfer_client: *client
action_guard_client: *client
  1. magentic ui --config config.yaml

redpsj-dev avatar May 28 '25 05:05 redpsj-dev