Magentic UI runs normally, but the browser cannot be operated
What steps did I take
I did the following steps on my MacBook pro (m1)
- first I downloaded the code:
git clone https://github.com/microsoft/magentic-ui.git - then created a virtual environment:
conda create -n py312-magentic python=3.12 && conda activate py312-magentic - installed dependencies:
pip install magentic-ui[azure] - running magentic:
magentic ui --port 8081 - visit in your browser: localhost:8081
- 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 - ask a question:
Please help me open youtube, but no reaction at all.
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
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.
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.
I am also facing this issue
@kinoxyz1 In a Mac environment, the browser will work normally if you set it as follows. Please note.
[ macOS Sequoia 15.5 ]
- conda create -n magentic-ui python=3.12 -y
- conda activate magentic-ui
- pip install "magentic-ui[azure]"
- 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
- magentic ui --config config.yaml